themes: Don't handle box.linked special
authorTimm Bäder <mail@baedert.org>
Mon, 18 Jun 2018 17:39:32 +0000 (19:39 +0200)
committerTimm Bäder <mail@baedert.org>
Mon, 18 Jun 2018 17:39:32 +0000 (19:39 +0200)
We don't reverse the css nodes anymore in RTL layouts.

gtk/theme/Adwaita/_common.scss
gtk/theme/HighContrast/_common.scss

index 6317fdb9306b36f3619943d76fc7a5bfffb5dd66..a9b9223fac0914617b540cb5408ed51c1ee9fda2 100644 (file)
@@ -949,23 +949,10 @@ toolbar.inline-toolbar toolbutton:backdrop {
     border-right-style: solid;
 }
 
-// .linked assumes Box, which reverses nodes in RTL, so 1st child is always left
+// 1st/last child are at text start/end
 %linked {
   @extend %linked_middle;
 
-  &:first-child { @extend %linked_left; }
-  &:last-child { @extend %linked_right; }
-
-  &:only-child {
-    border-radius: 3px;
-    border-style: solid;
-  }
-}
-
-// Other widgets use widget child order, so 1st/last child are at text start/end
-%linked_flippable {
-  @extend %linked_middle;
-
   &:dir(ltr) {
     &:first-child { @extend %linked_left; }
     &:last-child { @extend %linked_right; }
@@ -1717,7 +1704,7 @@ headerbar { // headerbar border rounding
 // can’t simply remove .linked from the widget as that might break other themes.
 // Note also we select on filechooser to avoid interfering with NautilusPathBar.
 filechooser .path-bar.linked > button {
-  @extend %linked_flippable;
+  @extend %linked;
 }
 
 .path-bar button {
index 2b2f427ee369c1aeb4bbf1e640ef28a73959adc5..afa5f5ab54b69dba0f009b60710831d0b7241e45 100644 (file)
@@ -757,23 +757,10 @@ toolbar.inline-toolbar toolbutton:backdrop {
     border-right-style: solid;
 }
 
-// .linked assumes Box, which reverses nodes in RTL, so 1st child is always left
+// 1st/last child are at text start/end
 %linked {
   @extend %linked_middle;
 
-  &:first-child { @extend %linked_left; }
-  &:last-child { @extend %linked_right; }
-
-  &:only-child {
-    border-radius: 3px;
-    border-style: solid;
-  }
-}
-
-// Other widgets use widget child order, so 1st/last child are at text start/end
-%linked_flippable {
-  @extend %linked_middle;
-
   &:dir(ltr) {
     &:first-child { @extend %linked_left; }
     &:last-child { @extend %linked_right; }
@@ -1319,7 +1306,7 @@ headerbar {
 // can’t simply remove .linked from the widget as that might break other themes.
 // Note also we select on filechooser to avoid interfering with NautilusPathBar.
 filechooser .path-bar.linked > button {
-  @extend %linked_flippable;
+  @extend %linked;
 }
 
 .path-bar button {