Bug 1664242 - Use -moz-gtk-info-bar for RSS feed CSS on Linux. r=frg

Port the RSS feed part of bug 1187203.

As this is GTK-specific, changes are done in a separate
feed-subscribe.css for GTK builds.

--HG--
rename : suite/themes/classic/communicator/feed-subscribe.css => suite/themes/classic/linux/communicator/feed-subscribe.css
This commit is contained in:
Nuno Silva 2020-09-10 18:15:50 +01:00
Родитель c827fe6ffa
Коммит d3d630758f
2 изменённых файлов: 153 добавлений и 0 удалений

Просмотреть файл

@ -143,7 +143,11 @@ classic.jar:
skin/classic/communicator/brand/throbber16-single.png (communicator/brand/throbber16-single.png)
skin/classic/communicator/dataman/dataman.css (communicator/dataman/dataman.css)
skin/classic/communicator/dataman/datamanIcon-16.png (communicator/dataman/datamanIcon-16.png)
#ifdef MOZ_WIDGET_GTK
skin/classic/communicator/feed-subscribe.css (linux/communicator/feed-subscribe.css)
#else
skin/classic/communicator/feed-subscribe.css (communicator/feed-subscribe.css)
#endif
skin/classic/communicator/feed-subscribe-ui.css (communicator/feed-subscribe-ui.css)
skin/classic/communicator/fullscreen-video.css (communicator/fullscreen-video.css)
skin/classic/communicator/downloads/dl-remove.png (communicator/downloads/dl-remove.png)

Просмотреть файл

@ -0,0 +1,149 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
html {
background: -moz-Dialog;
font: message-box;
}
#feedBody {
border: 1px solid ThreeDShadow;
padding: 3em;
padding-inline-start: 30px;
margin: 2em auto;
background: -moz-Field;
}
#feedHeaderContainer {
border: 1px solid ThreeDShadow;
border-radius: 10px;
margin: -4em auto 0 auto;
background-color: InfoBackground;
-moz-appearance: -moz-gtk-info-bar;
}
#feedHeader {
margin-top: 4.9em;
margin-bottom: 1em;
margin-inline-start: 1.4em;
margin-inline-end: 1em;
padding-inline-start: 2.9em;
font-size: 110%;
color: -moz-gtk-info-bar-text;
}
.feedBackground {
background: url("chrome://communicator/skin/icons/feedIcon.png") 0% 10% no-repeat;
}
.videoPodcastBackground {
background: url("chrome://communicator/skin/icons/videoFeedIcon.png") 0% 10% no-repeat;
}
.audioPodcastBackground {
background: url("chrome://communicator/skin/icons/audioFeedIcon.png") 0% 10% no-repeat;
}
#feedHeader[dir="rtl"] {
background-position: 100% 10%;
}
#feedIntroText {
display: none;
}
#feedHeader[firstrun="true"] #feedIntroText {
padding-top: 0.1em;
padding-inline-start: 0.6em;
display: block;
}
#feedHeader[firstrun="true"] > #feedSubscribeLine {
padding-inline-start: 1.8em;
}
#feedSubscribeLine {
padding-top: 0.2em;
}
/* Don't print subscription UI */
@media print {
#feedHeaderContainer {
display: none;
}
}
body {
margin: 0;
padding: 0 3em;
color: -moz-fieldText;
font: message-box;
}
h1 {
font-size: 160%;
border-bottom: 2px solid ThreeDLightShadow;
margin: 0 0 .2em 0;
}
h2 {
font-size: 110%;
font-weight: normal;
margin: 0 0 .6em 0;
}
#feedTitleLink {
float: right;
margin-inline-start: .6em;
margin-inline-end: 0;
margin-top: 0;
margin-bottom: 0;
}
a[href] img {
border: none;
}
#feedTitleContainer {
margin-inline-start: 0;
margin-inline-end: .6em;
margin-top: 0;
margin-bottom: 0;
}
#feedTitleImage {
margin-inline-start: .6em;
margin-inline-end: 0;
margin-top: 0;
margin-bottom: 0;
max-width: 300px;
max-height: 150px;
}
.feedEntryContent {
font-size: 110%;
}
.lastUpdated {
font-size: 85%;
font-weight: normal;
}
.type-icon {
vertical-align: bottom;
height: 16px;
width: 16px;
}
.enclosures {
border: 1px solid ThreeDShadow;
padding: 1em;
margin: 1em auto;
background: -moz-Dialog;
}
.enclosure {
vertical-align: middle;
margin-left: 2px;
}