MediaWiki:Gadget-gsnews.css

From [N8]
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Top bar link */
#pt-gsnews .oo-ui-icon-feedback {
	width: 15px;
	min-width: 15px;
	height: 15px;
	background-size: 14px;
	display: block;
	background-repeat: no-repeat;
	background-image: url(/load.php?format=rasterized&image=feedback&lang=en-gb&modules=oojs-ui.styles.icons-interactions&skin=vector&version=0s83l74);
	background-image: linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E%3Ctitle%3Efeedback%3C/title%3E%3Cpath d=%22M19 16L2 12a3.83 3.83 0 0 1-1-2.5A3.83 3.83 0 0 1 2 7l17-4z%22 fill='%23787776' fill-rule='evenodd'/%3E%3Crect width=%224%22 height=%228%22 x=%224%22 y=%229%22 rx=%222%22 ry=%222%22 fill='%23787776' fill-rule='evenodd'/%3E%3C/svg%3E");
	opacity: 1;
}
body.wgl-darkmode #pt-gsnews .oo-ui-icon-feedback {
	background-image: linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E%3Ctitle%3Efeedback%3C/title%3E%3Cpath d=%22M19 16L2 12a3.83 3.83 0 0 1-1-2.5A3.83 3.83 0 0 1 2 7l17-4z%22 fill='%23cbd9f4' fill-rule='evenodd'/%3E%3Crect width=%224%22 height=%228%22 x=%224%22 y=%229%22 rx=%222%22 ry=%222%22 fill='%23cbd9f4' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* unread counter */
#pt-gsnews a.gsw-gsnews-hasunread {
	position:  relative;
}
#pt-gsnews a.gsw-gsnews-hasunread::after {
	content: '';
	border-radius: 50%;
	min-width: 10px;
	width: 0.7em;
	min-height: 10px;
	height: 0.7em;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	background: #f57b7b;
	display: inline-block;
	position: relative;
	top: 50%;
	left: 50%
}

/* Arrow */
.gsw-gsnews-arrow {
	position:  absolute;
	top:  -10px;
	width: 0px;
	height: 0px;
	border: 10px solid transparent;
	border-bottom-color: #f9fafa;
	border-top-width: 0px;
	z-index: 9000;
}
body.wgl-darkmode .gsw-gsnews-arrow {
	border-bottom-color: #596e96;
}

/* Popup */
.gsw-gsnews {
	position: absolute;
	border: 1px solid #e4eaee;
	border-radius: 2px;
	box-shadow: 0 0.5em 2em rgba(0,0,0,0.25);
	background-color: #fff;
	display: flex;
	flex-direction: column;
	z-index: 2;
}

body.wgl-darkmode .gsw-gsnews {
	border-color: #596e96;
	background-color: #222e45;
	color: #cbd9f4;
}

.gsw-gsnews h2 {
	background-color: #f9fafa;
	border: none;
	text-align: center;
	margin-bottom: 0;
	flex: 0 0 auto;
	padding: 10px 0px 0px;
	font-size: 1em;
	font-weight: bold;
}
body.wgl-darkmode .gsw-gsnews h2 {
	background-color: #313e59;
}

.gsw-gsnews .gsw-gsnews-content {
	overflow-y: scroll;
}

.gsw-gsnews-content.gsw-social-loading {
	opacity: 0.5;
}

.gsw-gsnews ul,
body.wgl-darkmode .gsw-gsnews ul {
	list-style: none;
	margin: 0;
	cursor: pointer;
}
body.wgl-darkmode .gsw-gsnews ul {
	list-style: none;
}
.gsw-gsnews li {
	margin: 0;
	border-bottom: 1px solid #ececec;
}

.gsw-gsnews li:last-child {
	border: none;
}

body.wgl-darkmode .gsw-gsnews li {
	border-bottom-color: #2f3d57;
}
.gsw-gsnews .gsw-gsnews-content a,
.gsw-gsnews .gsw-gsnews-content a:visited {
	color: #36414f;
	text-decoration: none;
	display: block;
	padding: 1em;
	overflow: hidden;
}
.gsw-gsnews .gsw-gsnews-content a:hover {
	color: #36414f;
	text-decoration: none;
	background-color: #ececec;
}
body.wgl-darkmode .gsw-gsnews .gsw-gsnews-content a,
body.wgl-darkmode .gsw-gsnews .gsw-gsnews-content a:visited {
	color: #cbd9f4;
}
body.wgl-darkmode .gsw-gsnews .gsw-gsnews-content a:hover {
	color: #cbd9f4;
	background: #2f3d57;
}

.gsw-gsnews .news-icon {
	max-width: 25px;
	max-height: 25px;
	float: left;
	margin: 0 0.5em 0.3em 0;
	overflow: hidden;
}
.gsw-gsnews .news-title {
	font-size: 1em;
	font-weight: bold;
	/*margin-left: 0.3em;*/ /*image has margin-right already */
}
.gsw-gsnews .news-date {
	margin-left: 0.3em;
	font-size: 0.9em;
	color: #949eaa;
}
body.wgl-darkmode .gsw-gsnews .news-date {
	color: #97a9c8;
}
.gsw-gsnews time.news-date::before {
	content: " -\a0";
}
.gsw-gsnews .news-snippet {
	display: block;
	clear: both;
	margin-top: 0.3em;
	font-size: .9em;
}
.gsw-gsnews .news-image {
	display: block;
	margin: 0px .5em .5em 1em;
	max-height: 75px;
	max-width: 100px;
	border-radius: 5px;
	float: right;
}

/* show more button */
.gsw-gsnews .news-refresh {
	text-align: center;
	border-top: 1px solid #a2a9b1;
}

.gsw-gsnews .news-refresh button {
	width: 100% !important;
	padding: 0.3em !important;
	font-size: 0.9em !important;
	font-weight: bold !important;
	border: none !important;
	outline: none !important;
	cursor: pointer !important;
	border-radius: 0 !important;
	background-color: #f9fafa;
}

.gsw-gsnews .news-refresh button:hover {
	background-color: #e3e3e3;
}

body.wgl-darkmode .gsw-gsnews .news-refresh {
	border-top: 1px solid #596e96;
}

body.wgl-darkmode .gsw-gsnews .news-refresh button.news-refresh-button {
	border: none;
}

body.wgl-darkmode .gsw-gsnews .news-more button.news-more-button {
	border: none;
	border-right: 1px solid #596e96;
}

/* loading error */
.gsw-gsnews p.news-error {
	color:  red;
}

.gsw-gsnews button.news-errorrefresh-button {
	display: block;
	padding: 0.3em;
	font-size: 0.9em;
	font-weight: bold;
	margin: 0.5em auto;
}

/* help text */
.gsw-gsnews .gsw-gsnews-help {
	font-size: .75em;
	text-align: center;
	padding: .25em;
	background-color: #f9fafa;
	border-bottom: 1px solid #e4eaee;
	font-style: italic;
	color: #686868;
}
body.wgl-darkmode .gsw-gsnews .gsw-gsnews-help {
	background-color: #313e59;
	border-color: #596e96;
	color: #ccc;
}

/* read/unread toggle */
.gsw-gsnews .gsw-gsnews-content .news-marker {
	float: right;
	padding: 0;
	position: relative;
	top: -10px;
}
.gsw-gsnews .gsw-gsnews-content .news-marker .marker-dot {
	border-radius: 50%;
	min-width: 10px;
	width: 0.7em;
	min-height: 10px;
	height: 0.7em;
	margin: 0.7em;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
.gsw-gsnews .news-unread-marker .marker-dot {
	background-color: #36c;
	border: 0;
}
.gsw-gsnews .news-unread-marker:hover .marker-dot {
	background-color: #447ff5;
}
.gsw-gsnews .news-read-marker .marker-dot {
	background-color: #eaecf0;
	border: 1px solid #72777d;
}
body.wgl-darkmode .gsw-gsnews .news-read-marker .marker-dot {
	background-color: #313e59;
	border: 1px solid #596e96;
}
.gsw-gsnews .news-read-marker:hover .marker-dot {
	background-color: #c8ccd1;
}
body.wgl-darkmode .gsw-gsnews .news-read-marker:hover .marker-dot {
	background-color: #596e96;
}

/**
* CSS for standalone page
**/

.gsw-gsnews-page.gsw-gsnews {
	position: static;
	box-shadow: none;
}

.gsw-gsnews-page.gsw-gsnews .gsw-gsnews-content {
	overflow-y: initial;
}
.gsw-gsnews-page.gsw-gsnews .news-image {
	display: block;
	margin: -23px .5em .5em 1em;
	max-height: 75px;
	max-width: initial;
	border-radius: 5px;
	float: right;
}

.gsw-gsnews-page.gsw-gsnews .news-list {
	margin-bottom: 0;
}

.gsw-gsnews-page.gsw-gsnews .news-refresh button {
	background-color: #e3e3e3;
}

.gsw-gsnews-page.gsw-gsnews .news-refresh button:hover {
	background-color: #dadada;
}

.gsw-gsnews-page.gsw-gsnews .news-more-button {
	height: 3em;
}

body.wgl-darkmode .gsw-gsnews-page.gsw-gsnews .news-refresh button {
	background-color: #313e59;
}

body.wgl-darkmode .gsw-gsnews-page.gsw-gsnews .news-refresh button:hover {
	background-color: #384766;
}

body.skin-minerva .gsw-gsnews-page.gsw-gsnews .newslist {
	padding: 0;
}

body.skin-minerva .gsw-gsnews-page.gsw-gsnews .news-image {
	max-height: 75px;
	max-width: 100px;
	margin: 0px .5em .5em 1em;
}