summaryrefslogtreecommitdiff
path: root/examples/js/applauncher/widget/Applauncher.scss
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-11-07 02:40:47 +0000
committerAylur <[email protected]>2024-11-07 02:40:47 +0000
commit779ec440e209b01d3a44f9377af78653d197fdc8 (patch)
tree3b10ea7843bd0baa292c9a44ee40b28d3c8bfa32 /examples/js/applauncher/widget/Applauncher.scss
parent51514347ef3bc1d7a6f37e798a43111b2f2fc9e0 (diff)
example: applauncher
Diffstat (limited to 'examples/js/applauncher/widget/Applauncher.scss')
-rw-r--r--examples/js/applauncher/widget/Applauncher.scss45
1 files changed, 45 insertions, 0 deletions
diff --git a/examples/js/applauncher/widget/Applauncher.scss b/examples/js/applauncher/widget/Applauncher.scss
new file mode 100644
index 0000000..86c5e87
--- /dev/null
+++ b/examples/js/applauncher/widget/Applauncher.scss
@@ -0,0 +1,45 @@
+@use "sass:string";
+
+@function gtkalpha($c, $a) {
+ @return string.unquote("alpha(#{$c},#{$a})");
+}
+
+// https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-3-24/gtk/theme/Adwaita/_colors-public.scss
+$fg-color: #{"@theme_fg_color"};
+$bg-color: #{"@theme_bg_color"};
+
+window#launcher {
+ all: unset;
+
+ box.Applauncher {
+ background-color: $bg-color;
+ border-radius: 11px;
+ margin: 1rem;
+ padding: .8rem;
+ box-shadow: 2px 3px 8px 0 gtkalpha(black, .4);
+
+ entry {
+ margin-bottom: .8rem;
+ }
+
+ button {
+ min-width: 0;
+ min-height: 0;
+ padding: .5rem;
+
+ icon {
+ font-size: 3em;
+ margin-right: .3rem;
+ }
+
+ label.name {
+ font-weight: bold;
+ font-size: 1.1em
+ }
+
+ label.description {
+ color: gtkalpha($fg-color, .8);
+ }
+ }
+ }
+}