[gnome-shell] theme: Move basic selectors into _base.scss
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] theme: Move basic selectors into _base.scss
- Date: Thu, 13 Feb 2020 19:55:39 +0000 (UTC)
commit 90786509bbeb16165a5e2fd570e098dff2a5f4fe
Author: nana-4 <hnmaigo gmail com>
Date: Mon Jan 20 01:18:06 2020 +0900
theme: Move basic selectors into _base.scss
.shell-link, .lowres-icon and .icon-dropshadow could be used globally.
For the icon shadow classes, they're used by officially supported
extensions.[1]
[1] https://gitlab.gnome.org/GNOME/gnome-shell-extensions/issues/168
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/938
data/theme/gnome-shell-sass/_widgets.scss | 1 +
data/theme/gnome-shell-sass/widgets/_app-grid.scss | 10 ----------
data/theme/gnome-shell-sass/widgets/_base.scss | 18 ++++++++++++++++++
data/theme/gnome-shell-sass/widgets/_misc.scss | 7 +------
data/theme/meson.build | 1 +
5 files changed, 21 insertions(+), 16 deletions(-)
---
diff --git a/data/theme/gnome-shell-sass/_widgets.scss b/data/theme/gnome-shell-sass/_widgets.scss
index 4ff6a122c2..48d440f588 100644
--- a/data/theme/gnome-shell-sass/_widgets.scss
+++ b/data/theme/gnome-shell-sass/_widgets.scss
@@ -7,6 +7,7 @@
/* WIDGETS */
// Primary widgets
+@import 'widgets/base';
@import 'widgets/entries';
@import 'widgets/buttons';
@import 'widgets/check-box';
diff --git a/data/theme/gnome-shell-sass/widgets/_app-grid.scss
b/data/theme/gnome-shell-sass/widgets/_app-grid.scss
index ba6eb608dc..8c68d37209 100644
--- a/data/theme/gnome-shell-sass/widgets/_app-grid.scss
+++ b/data/theme/gnome-shell-sass/widgets/_app-grid.scss
@@ -20,16 +20,6 @@ $app_icon_padding: 24px;
$app_grid_fg_color: #fff;
-// Outline for low res icons
-.lowres-icon {
- icon-shadow: 0 1px 2px rgba(0,0,0,0.3);
-}
-
-// Dropshadow for large icons
-.icon-dropshadow {
- icon-shadow: 0 1px 2px rgba(0,0,0,0.4);
-}
-
// Icon tiles in the app grid
.app-well-app,
%app-well-app {
diff --git a/data/theme/gnome-shell-sass/widgets/_base.scss b/data/theme/gnome-shell-sass/widgets/_base.scss
new file mode 100644
index 0000000000..914dd5955e
--- /dev/null
+++ b/data/theme/gnome-shell-sass/widgets/_base.scss
@@ -0,0 +1,18 @@
+// Links
+.shell-link {
+ color: $link_color;
+
+ &:hover {
+ color: lighten($link_color, 10%);
+ }
+}
+
+// Outline for low res icons
+.lowres-icon {
+ icon-shadow: 0 1px 2px rgba(black, 0.3);
+}
+
+// Dropshadow for large icons
+.icon-dropshadow {
+ icon-shadow: 0 1px 2px rgba(black, 0.4);
+}
diff --git a/data/theme/gnome-shell-sass/widgets/_misc.scss b/data/theme/gnome-shell-sass/widgets/_misc.scss
index 8f7e8d8248..fd6613dae9 100644
--- a/data/theme/gnome-shell-sass/widgets/_misc.scss
+++ b/data/theme/gnome-shell-sass/widgets/_misc.scss
@@ -1,9 +1,4 @@
-// Links/URLs
-.shell-link {
- color: $link_color;
- &:hover { color: lighten($link_color,10%); }
-}
-
+// URLs
.url-highlighter { link-color: $link_color; }
// Rubberband for select-area screenshots
diff --git a/data/theme/meson.build b/data/theme/meson.build
index ec750ef19d..6305b590f9 100644
--- a/data/theme/meson.build
+++ b/data/theme/meson.build
@@ -8,6 +8,7 @@ theme_sources = files([
'gnome-shell-sass/_widgets.scss',
'gnome-shell-sass/widgets/_app-grid.scss',
'gnome-shell-sass/widgets/_app-switcher.scss',
+ 'gnome-shell-sass/widgets/_base.scss',
'gnome-shell-sass/widgets/_buttons.scss',
'gnome-shell-sass/widgets/_calendar.scss',
'gnome-shell-sass/widgets/_check-box.scss',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]