summaryrefslogtreecommitdiff
path: root/desktop-themes/YaruOk/gtk-3.0/libhandy/_definitions.scss
diff options
context:
space:
mode:
authorblue-devil-93 <[email protected]>2021-06-24 10:32:21 +0200
committerGitHub <[email protected]>2021-06-24 10:32:21 +0200
commit9bf6f4ec2f77fd09a12ba2b68416e81a13b4ca3d (patch)
tree497fa90cd62785e4c9a522d265f323598fe575d8 /desktop-themes/YaruOk/gtk-3.0/libhandy/_definitions.scss
parentfb195c9951cd9d87cd650f1cb901dbfc5966ab04 (diff)
downloadmate-themes-9bf6f4ec2f77fd09a12ba2b68416e81a13b4ca3d.tar.bz2
mate-themes-9bf6f4ec2f77fd09a12ba2b68416e81a13b4ca3d.tar.xz
Propose a different traditional ok implentation (#290)
* tr * Propose another Traditonal Ok implementation based on Yaru * Makefile * fix makefile * remove whitespace+ * remove trailing whitespaces * rename it to traditionalok * move Theme to yaruok * Fix regression in mate appearance yaruok * Sync with official branch * readd traditionalokf * fix YaruOK case mismatch * improve tabs on gtk4 * fix Makefile.am * Add YaruGreen * Fix YaruGreen GTK3 * Fix Build - first try * Fix Build - second try * Fix Build - third try * improve colors of yaru green, decrease tab size * import scrollbar code from traditional green to yaru green * fix build * Tab_alignment_fix_for_yaru_green * add panel grip * decrease_tab_size fix_panel fix_link_color * sync_yru_ok_with_green * addpanel_gripper_to yaru * darken yarugreen scrollbar as requested * decrease border radius for popover on yaru grren and ok * decrease border radius for popover on yaru grren and ok . * fiy overlay - first try * fix osd colors * improve tabs and panel grabber * decrease popover and menu radius to 2px * fix mate-calc * fix mate-calc.
Diffstat (limited to 'desktop-themes/YaruOk/gtk-3.0/libhandy/_definitions.scss')
-rw-r--r--desktop-themes/YaruOk/gtk-3.0/libhandy/_definitions.scss66
1 files changed, 66 insertions, 0 deletions
diff --git a/desktop-themes/YaruOk/gtk-3.0/libhandy/_definitions.scss b/desktop-themes/YaruOk/gtk-3.0/libhandy/_definitions.scss
new file mode 100644
index 00000000..9225bffb
--- /dev/null
+++ b/desktop-themes/YaruOk/gtk-3.0/libhandy/_definitions.scss
@@ -0,0 +1,66 @@
+//@import 'drawing';
+
+@function hdyalpha($c, $a) {
+ @return unquote("alpha(#{$c}, #{$a})");
+}
+
+@function hdymix($c1, $c2, $r) {
+ @return unquote("mix(#{$c1}, #{$c2}, #{$r})");
+}
+
+$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));
+
+//@if $high_contrast {
+// $leaflet_border: $borders_color;
+// $leaflet_outline: transparent;
+//}
+
+@mixin background-shadow($direction) {
+ background-image:
+ linear-gradient($direction,
+ rgba(0, 0, 0, if($variant == 'light', 0.05, 0.1)),
+ rgba(0, 0, 0, if($variant == 'light', 0.01, 0.02)) 40px,
+ rgba(0, 0, 0, 0) 56px),
+ linear-gradient($direction,
+ rgba(0, 0, 0, if($variant == 'light', 0.03, 0.06)),
+ rgba(0, 0, 0, if($variant == 'light', 0.01, 0.02)) 7px,
+ rgba(0, 0, 0, 0) 24px);
+}
+
+// Makes the corners of the given border rounded.
+// $border must be top, bottom, left, or right.
+@mixin rounded-border($border) {
+ // The floors (top, bottom) and walls (left, right) of the corners matching
+ // $border. This is needed to easily form floor-wall pairs regardless of
+ // whether $border is a floor or a wall.
+ $corners: (
+ 'top': (('top'), ('left', 'right')),
+ 'bottom': (('bottom'), ('left', 'right')),
+ 'left': (('top', 'bottom'), ('left')),
+ 'right': (('top', 'bottom'), ('right')),
+ );
+
+ @if not map-get($corners, $border) {
+ @error "Unknown border type: #{$border}";
+ }
+
+ // Loop through the floors and walls of the corners of $border.
+ @each $floor in nth(map-get($corners, $border), 1) {
+ @each $wall in nth(map-get($corners, $border), 2) {
+ border-#{$floor}-#{$wall}-radius: 8px;
+ -gtk-outline-#{$floor}-#{$wall}-radius: 7px;
+ }
+ }
+}
+
+@mixin margin-start($margin) {
+ &:dir(ltr) {
+ margin-left: $margin;
+ }
+
+ &:dir(rtl) {
+ margin-right: $margin;
+ }
+}