[gnome-builder] themes: move some CSS to generic shared.css



commit 4d513303742d2c513f3d991c063ec90865d79150
Author: Christian Hergert <chergert redhat com>
Date:   Sat Jun 17 01:46:03 2017 -0700

    themes: move some CSS to generic shared.css
    
    Some of this isn't exactly Adwaita-specific, even though it is made with
    Adwaita in mind. It is suitable fallback for other themes too.

 data/themes/Adwaita-shared.css |  155 ----------------------------------------
 data/themes/shared.css         |  145 +++++++++++++++++++++++++++++++++++++
 2 files changed, 145 insertions(+), 155 deletions(-)
---
diff --git a/data/themes/Adwaita-shared.css b/data/themes/Adwaita-shared.css
index 1b17631..d90bdd8 100644
--- a/data/themes/Adwaita-shared.css
+++ b/data/themes/Adwaita-shared.css
@@ -107,52 +107,6 @@ treeview.image { color: alpha(currentColor, 0.8); }
 treeview.image:selected { color: alpha(@theme_selected_fg_color, 0.9); }
 
 
-popover.popover-selector list {
-  padding: 12px;
-}
-
-popover.popover-selector list row {
-  padding: 8px;
-}
-
-popover.popover-selector list row image {
-  min-height: 16px;
-  min-width: 16px;
-  margin-right: 12px;
-}
-popover.popover-selector list row image:dir(rtl) {
-  margin-right: 0px;
-  margin-left: 12px;
-}
-popover.popover-selector list row .accel {
-  margin-left: 20px;
-  margin-right: 0;
-}
-popover.popover-selector list row .accel:dir(rtl) {
-  margin-left: 0;
-  margin-right: 20px;
-}
-
-
-omnibar entry {
-  background-color: @theme_bg_color;
-  color: alpha(@theme_fg_color, 0.8);
-}
-omnibar:hover entry,
-omnibar:active entry {
-  background-color: mix(@theme_bg_color, @content_view_bg, 0.9);
-  color: @theme_fg_color;
-}
-
-
-popover.omnibar list row {
-  border-bottom: 1px solid alpha(@borders, 0.4);
-}
-popover.omnibar list row:last-child {
-  border-bottom: none;
-}
-
-
 popover.messagepopover.background {
   border-bottom-left-radius: 9px;
   border-bottom-right-radius: 9px;
@@ -184,112 +138,3 @@ popover.messagepopover .popover-content-area {
 }
 
 
-popover.transfers list {
-  background-color: transparent;
-}
-popover.transfers list row {
-  border-top: 1px solid @borders;
-}
-popover.transfers list row:first-child {
-  border-top: none;
-}
-popover.transfers list row > box {
-  padding: 10px;
-}
-
-
-/*
-buildpanel button.popup:active,
-buildpanel button.popup:checked,
-buildpanel button.popup {
-  background-image: none;
-  background-color: transparent;
-  box-shadow: none;
-  border-style: none;
-  margin: 0;
-  padding: 0;
-}
-*/
-
-list.buildpanel row {
-  padding: 10px;
-  border-bottom: 1px solid alpha(@borders, 0.4);
-}
-
-list.buildpanel row:last-child {
-  border-bottom: none;
-}
-
-buildpanel list row {
-  padding: 6px;
-  border-bottom: 1px solid alpha(@borders, 0.4);
-}
-
-buildpanel list row:last-child {
-  border-bottom: none;
-}
-
-buildpanel list row label.file {
-  opacity: 0.5;
-}
-
-
-buildpanel box.build-status {
-  background: shade(@theme_bg_color, 0.96);
-}
-
-
-buildperspective list.sidebar row:selected button:hover {
-  border-color: transparent;
-  box-shadow: none;
-  background: transparent;
-  color: @theme_selected_fg_color;
-  opacity: 1;
-}
-buildperspective list.sidebar row:selected button,
-buildperspective list.sidebar row:selected button:active {
-  opacity: 0.8;
-}
-buildperspective list.sidebar {
-  border-right: 1px solid alpha(@borders, 0.55);
-}
-
-
-configurationview list row {
-  padding: 10px;
-  border-bottom: 1px solid alpha(@borders, 0.4);
-}
-configurationview list row:last-child {
-  border-bottom: none;
-}
-
-configurationview list row entry {
-  background: transparent;
-  border: none;
-  padding: 0;
-  padding-left: 5px;
-  border-radius: 3px;
-  margin: -5px;
-}
-
-configurationview list row spinbutton entry {
-  margin-left: 2px;
-}
-
-configurationview list row button {
-  margin: -5px 0;
-}
-
-
-/* hrmm, we can use this to get row separators */
-buildpanel treeview,
-configurationview treeview {
-  border-bottom: 1px solid alpha(@borders, 0.4);
-}
-
-
-buildpanel list > label {
-  font-weight: bold;
-  opacity: 0.55;
-  margin: 6px 10px 0px 10px;
-}
diff --git a/data/themes/shared.css b/data/themes/shared.css
index 4f6cbcc..746f586 100644
--- a/data/themes/shared.css
+++ b/data/themes/shared.css
@@ -220,3 +220,148 @@ treeview.dim-label {
 button.run-arrow-button {
   min-width: 12px;
 }
+
+
+popover.popover-selector list {
+  padding: 12px;
+}
+
+popover.popover-selector list row {
+  padding: 8px;
+}
+
+popover.popover-selector list row image {
+  min-height: 16px;
+  min-width: 16px;
+  margin-right: 12px;
+}
+popover.popover-selector list row image:dir(rtl) {
+  margin-right: 0px;
+  margin-left: 12px;
+}
+popover.popover-selector list row .accel {
+  margin-left: 20px;
+  margin-right: 0;
+}
+popover.popover-selector list row .accel:dir(rtl) {
+  margin-left: 0;
+  margin-right: 20px;
+}
+
+
+popover.omnibar list row {
+  border-bottom: 1px solid alpha(@borders, 0.4);
+}
+popover.omnibar list row:last-child {
+  border-bottom: none;
+}
+
+
+omnibar entry {
+  background-color: @theme_bg_color;
+  color: alpha(@theme_fg_color, 0.8);
+}
+omnibar:hover entry,
+omnibar:active entry {
+  background-color: mix(@theme_bg_color, @content_view_bg, 0.9);
+  color: @theme_fg_color;
+}
+
+
+list.buildpanel row {
+  padding: 10px;
+  border-bottom: 1px solid alpha(@borders, 0.4);
+}
+
+list.buildpanel row:last-child {
+  border-bottom: none;
+}
+
+buildpanel list row {
+  padding: 6px;
+  border-bottom: 1px solid alpha(@borders, 0.4);
+}
+
+buildpanel list row:last-child {
+  border-bottom: none;
+}
+
+buildpanel list row label.file {
+  opacity: 0.5;
+}
+
+
+buildpanel box.build-status {
+  background: shade(@theme_bg_color, 0.96);
+}
+
+
+buildperspective list.sidebar row:selected button:hover {
+  border-color: transparent;
+  box-shadow: none;
+  background: transparent;
+  color: @theme_selected_fg_color;
+  opacity: 1;
+}
+buildperspective list.sidebar row:selected button,
+buildperspective list.sidebar row:selected button:active {
+  opacity: 0.8;
+}
+buildperspective list.sidebar {
+  border-right: 1px solid alpha(@borders, 0.55);
+}
+
+
+configurationview list row {
+  padding: 10px;
+  border-bottom: 1px solid alpha(@borders, 0.4);
+}
+configurationview list row:last-child {
+  border-bottom: none;
+}
+
+configurationview list row entry {
+  background: transparent;
+  border: none;
+  padding: 0;
+  padding-left: 5px;
+  border-radius: 3px;
+  margin: -5px;
+}
+
+configurationview list row spinbutton entry {
+  margin-left: 2px;
+}
+
+configurationview list row button {
+  margin: -5px 0;
+}
+
+
+/* hrmm, we can use this to get row separators */
+buildpanel treeview,
+configurationview treeview {
+  border-bottom: 1px solid alpha(@borders, 0.4);
+}
+
+
+buildpanel list > label {
+  font-weight: bold;
+  opacity: 0.55;
+  margin: 6px 10px 0px 10px;
+}
+
+
+popover.transfers list {
+  background-color: transparent;
+}
+popover.transfers list row {
+  border-top: 1px solid @borders;
+}
+popover.transfers list row:first-child {
+  border-top: none;
+}
+popover.transfers list row > box {
+  padding: 10px;
+}
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]