[libadwaita/wip/exalm/stylesheet2: 103/103] stylesheet: Move leaflet/flap transition shadow to a separate file
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/stylesheet2: 103/103] stylesheet: Move leaflet/flap transition shadow to a separate file
- Date: Fri, 16 Apr 2021 22:38:47 +0000 (UTC)
commit a8747b9a6938ce23956318463055ab3a49564a8e
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Fri Apr 9 17:11:49 2021 +0500
stylesheet: Move leaflet/flap transition shadow to a separate file
src/stylesheet/_common.scss | 1 -
src/stylesheet/_widgets.scss | 1 +
src/stylesheet/meson.build | 1 +
src/stylesheet/{_custom.scss => widgets/_transition-shadow.scss} | 4 ----
4 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/stylesheet/_common.scss b/src/stylesheet/_common.scss
index 01123ef..9e41f24 100644
--- a/src/stylesheet/_common.scss
+++ b/src/stylesheet/_common.scss
@@ -91,4 +91,3 @@ expander-widget {
}
@import 'widgets';
-@import 'custom';
diff --git a/src/stylesheet/_widgets.scss b/src/stylesheet/_widgets.scss
index 9d8649c..6ed9628 100644
--- a/src/stylesheet/_widgets.scss
+++ b/src/stylesheet/_widgets.scss
@@ -31,6 +31,7 @@
@import 'widgets/text-selection';
@import 'widgets/toolbars';
@import 'widgets/tooltip';
+@import 'widgets/transition-shadow';
@import 'widgets/trees';
@import 'widgets/views';
@import 'widgets/view-switcher';
diff --git a/src/stylesheet/meson.build b/src/stylesheet/meson.build
index cf503d3..a7ec73c 100644
--- a/src/stylesheet/meson.build
+++ b/src/stylesheet/meson.build
@@ -53,6 +53,7 @@ if not fs.exists('Adwaita-light.css')
'widgets/_text-selection.scss',
'widgets/_toolbars.scss',
'widgets/_tooltip.scss',
+ 'widgets/_transition-shadow.scss',
'widgets/_trees.scss',
'widgets/_views.scss',
'widgets/_view-switcher.scss',
diff --git a/src/stylesheet/_custom.scss b/src/stylesheet/widgets/_transition-shadow.scss
similarity index 95%
rename from src/stylesheet/_custom.scss
rename to src/stylesheet/widgets/_transition-shadow.scss
index abde9ca..43fbab4 100644
--- a/src/stylesheet/_custom.scss
+++ b/src/stylesheet/widgets/_transition-shadow.scss
@@ -1,5 +1,3 @@
-// TODO: Integrate these styles into _common.scss
-
$leaflet_dimming: rgba(0, 0, 0, if($variant == 'light', 0.12, 0.24));
$leaflet_border: rgba(0, 0, 0, if($variant == 'light', 0.05, 0.2));
$leaflet_outline: rgba(255, 255, 255, if($variant == 'light', 0.2, 0.05));
@@ -9,8 +7,6 @@ $leaflet_outline: rgba(255, 255, 255, if($variant == 'light', 0.2, 0.05));
$leaflet_outline: transparent;
}
-// Shadows
-
@mixin background-shadow($direction) {
background-image:
linear-gradient($direction,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]