[gnome-mines] Move the common styling from themes to the common css
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-mines] Move the common styling from themes to the common css
- Date: Thu, 4 Jun 2015 21:44:25 +0000 (UTC)
commit 90a202b4640e595b4eabee2716d441e941e1434b
Author: Robert Roth <robert roth off gmail com>
Date: Fri Jun 5 00:43:28 2015 +0300
Move the common styling from themes to the common css
data/gnome-mines.css | 67 ++++++++++++++++++++++++++++++++++
data/themes/bgcolors/theme.css | 78 ----------------------------------------
data/themes/classic/theme.css | 61 -------------------------------
data/themes/default/theme.css | 59 ------------------------------
4 files changed, 67 insertions(+), 198 deletions(-)
---
diff --git a/data/gnome-mines.css b/data/gnome-mines.css
index 2fa9b18..d31caec 100644
--- a/data/gnome-mines.css
+++ b/data/gnome-mines.css
@@ -20,3 +20,70 @@
border-color:#BABABA;
background-image:none;
}
+
+/* These are the default style settings possibly overridden by themes */
+
+/* Common style for all tiles */
+.tile {
+ background-image:none;
+ background-color:#babdb6;
+ border-color:@theme_bg_color;
+ border-radius:4px; /* border width might be affecting */
+ color:transparent;
+ border-image:none;
+ font-size:16px;
+ font-weight: bold;
+ background-size: 60%;
+ background-position: 50%;
+ padding:0px;
+ background-repeat: no-repeat;
+ box-shadow:none;
+ border-width:2px;
+}
+
+.tile:hover {
+ background-color:#d3d7cf;
+ transition-duration:0.4s;
+}
+
+.tile:active {
+ background-color:#888a85;
+ box-shadow: inset 0 2px 1px rgba(0,0,0,.2);
+}
+
+/* Style for revealed fields showing numbers */
+.count {
+ color:black;
+ font-size:0px;
+ background-image:none;
+ background-color:#dededc;
+ transition-duration:0.4s;
+}
+
+.count:hover {
+ background-color:#dededc;
+}
+
+/* Style for mines */
+.mine {
+ background-color:#729fcf;
+}
+
+/* Style of the keyboard cursor */
+.cursor {
+ background-color:#e9b96e;
+}
+
+/* Styles to be used on game over*/
+.explodedField .incorrect {
+ background-color:#cc0000;
+}
+
+.completedField .flag {
+ transition-duration:1s;
+}
+
+.explodedField {
+ transition-duration:1s;
+}
+
diff --git a/data/themes/bgcolors/theme.css b/data/themes/bgcolors/theme.css
index c941333..f38acd0 100644
--- a/data/themes/bgcolors/theme.css
+++ b/data/themes/bgcolors/theme.css
@@ -1,117 +1,39 @@
-/* Common style for all tiles */
-.tile {
- background-image:none;
- background-color:#babdb6;
- border-color:@theme_bg_color;
- border-radius:4px; /* border width might be affecting */
- color:transparent;
- border-image:none;
- font-size:16px;
- font-weight: bold;
- background-size: 60%;
- background-position: 50%;
- padding:0px;
- background-repeat: no-repeat;
- box-shadow:none;
- border-width:0px;
-}
-
-.tile:hover {
- background-color:#d3d7cf;
- transition-duration:0.4s;
-}
-
-.tile:active {
- background-color:#888a85;
- box-shadow: inset 0 2px 1px rgba(0,0,0,.2);
-}
-
-/* Style for revealed fields showing numbers */
-.count {
- color:black;
- font-size:0px;
- background-image:none;
- background-color:#dededc;
- transition-duration:0.4s;
-}
-
-.count:hover {
- background-color:#dededc;
-}
-
-/* Style for mines */
-.mine {
- background-color:#729fcf;
-}
-
-/* Style of the keyboard cursor */
-.cursor {
- background-color:#e9b96e;
-}
-
/* Style of the unrevealed tiles after game over */
.explodedField .mine {
background-color:#888a85;
- transition-duration:1s;
}
.explodedField .exploded {
background-color:#d3d7cf;
- transition-duration:1s;
}
-.explodedField .incorrect {
- background-color:#cc0000;
-}
-
-.completedField .flag {
- transition-duration:1s;
-}
-
-
.1mines {
background-color:#DDFAC3;
- border-color:#CCCCCC;
- border-width:1px;
}
.2mines {
background-color:#ECEDBF;
- border-color:#CCCCCC;
- border-width:1px;
}
.3mines {
background-color:#EDDAB4;
- border-color:#CCCCCC;
- border-width:1px;
}
.4mines {
background-color:#EDC38A;
- border-color:#CCCCCC;
- border-width:1px;
}
.5mines {
background-color:#F7A1A2;
- border-color:#CCCCCC;
- border-width:1px;
}
.6mines {
background-color:#FEA785;
- border-color:#CCCCCC;
- border-width:1px;
}
.7mines {
background-color:#FF7D60;
- border-color:#CCCCCC;
- border-width:1px;
}
.8mines {
background-color:#FF323C;
- border-color:#CCCCCC;
- border-width:1px;
}
diff --git a/data/themes/classic/theme.css b/data/themes/classic/theme.css
index 23bd9ef..d0fc5c3 100644
--- a/data/themes/classic/theme.css
+++ b/data/themes/classic/theme.css
@@ -1,70 +1,9 @@
-/* Common style for all tiles */
-.tile {
- background-image:none;
- background-color:#babdb6;
- border-color:@theme_bg_color;
- border-radius:4px; /* border width might be affecting */
- color:transparent;
- border-image:none;
- font-size:16px;
- font-weight: bold;
- background-size: 60%;
- background-position: 50%;
- padding:0px;
- background-repeat: no-repeat;
- box-shadow:none;
- border-width:0px;
-}
-
-.tile:hover {
- background-color:#d3d7cf;
- transition-duration:0.4s;
-}
-
-.tile:active {
- background-color:#888a85;
- box-shadow: inset 0 2px 1px rgba(0,0,0,.2);
-}
-
-/* Style for revealed fields showing numbers */
-.count {
- color:black;
- font-size:0px;
- background-image:none;
- background-color:#dededc;
- transition-duration:0.4s;
-}
-
-.count:hover {
- background-color:#dededc;
-}
-
-/* Style for mines */
-.mine {
- background-color:#729fcf;
-}
-
-/* Style of the keyboard cursor */
-.cursor {
- background-color:#e9b96e;
-}
-
/* Style of the unrevealed tiles after game over */
.explodedField .tile {
background-color:#888a85;
- transition-duration:1s;
}
.explodedField .count,
.explodedField .exploded {
background-color:#d3d7cf;
- transition-duration:1s;
-}
-
-.explodedField .incorrect {
- background-color:#cc0000;
-}
-
-.completedField .flag {
- transition-duration:1s;
}
diff --git a/data/themes/default/theme.css b/data/themes/default/theme.css
index 23bd9ef..c54dfb6 100644
--- a/data/themes/default/theme.css
+++ b/data/themes/default/theme.css
@@ -1,54 +1,3 @@
-/* Common style for all tiles */
-.tile {
- background-image:none;
- background-color:#babdb6;
- border-color:@theme_bg_color;
- border-radius:4px; /* border width might be affecting */
- color:transparent;
- border-image:none;
- font-size:16px;
- font-weight: bold;
- background-size: 60%;
- background-position: 50%;
- padding:0px;
- background-repeat: no-repeat;
- box-shadow:none;
- border-width:0px;
-}
-
-.tile:hover {
- background-color:#d3d7cf;
- transition-duration:0.4s;
-}
-
-.tile:active {
- background-color:#888a85;
- box-shadow: inset 0 2px 1px rgba(0,0,0,.2);
-}
-
-/* Style for revealed fields showing numbers */
-.count {
- color:black;
- font-size:0px;
- background-image:none;
- background-color:#dededc;
- transition-duration:0.4s;
-}
-
-.count:hover {
- background-color:#dededc;
-}
-
-/* Style for mines */
-.mine {
- background-color:#729fcf;
-}
-
-/* Style of the keyboard cursor */
-.cursor {
- background-color:#e9b96e;
-}
-
/* Style of the unrevealed tiles after game over */
.explodedField .tile {
background-color:#888a85;
@@ -60,11 +9,3 @@
background-color:#d3d7cf;
transition-duration:1s;
}
-
-.explodedField .incorrect {
- background-color:#cc0000;
-}
-
-.completedField .flag {
- transition-duration:1s;
-}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]