]> Shamusworld >> Repos - ardour-manual/commitdiff
CSS: Clearer difference between menus and buttons, more elegant code
authorEd Ward <edwsaintesprit@hotmail.com>
Tue, 31 Aug 2021 19:39:51 +0000 (21:39 +0200)
committerEd Ward <edwsaintesprit@hotmail.com>
Tue, 31 Aug 2021 19:39:51 +0000 (21:39 +0200)
source/css/common.css
source/css/screen.css
source/images/checkbox-checked.png [deleted file]
source/images/checkbox-unchecked.png [deleted file]

index 0de80fc5cf7afc6d60c5007d5dbc575ed936941f..32495d70d5c2c5e9a40c579504e1d89e0af9719f 100644 (file)
@@ -1,5 +1,4 @@
 
-
 body {
   line-height: normal;
 }
@@ -9,14 +8,14 @@ kbd {
   min-width: 1em;
   padding: .2em .3em;
   font: normal .8em/1 sans-serif;
-  text-align: center;
   text-decoration: none;
   border-radius: .3em;
-  background: rgb(250, 250, 250);
+  background: rgb(210, 210, 210);
   background: linear-gradient(to top, rgb(210, 210, 210), rgb(255, 255, 255));
   color: rgb(50, 50, 50);
   white-space: nowrap;
-  text-transform: capitalize;
+  text-shadow: 0 0 2px rgb(255, 255, 255);
+  box-shadow: inset 0 0 1px rgb(255, 255, 255), inset 0 0 .4em rgb(200, 200, 200), 0 .1em 0 rgb(130, 130, 130), 0 .11em 0 rgba(0, 0, 0, .4), 0 .1em .11em rgba(0, 0, 0, .9);
 }
 
 kbd.def {
@@ -34,7 +33,7 @@ kbd.osc {
 
 kbd.input {
   background: none;
-  border-radius: 0;
+  border-radius: unset;
 }
 
 kbd.cmd {
@@ -44,45 +43,37 @@ kbd.cmd {
   text-transform: none;
   background: rgb(220, 220, 220);
   text-align: left;
+  color: #999999;
+  text-shadow: none;
+  box-shadow: none;
 }
 
 kbd.cmd.lin:before {
   content: 'user@linux:~ ';
-  color: #999999;
 }
 
 kbd.cmd.mac:before {
   content: 'MacBook:~/Desktop User\$ ';
-  color: #999999;
 }
 
 kbd.cmd.win:before {
   content: 'C:\\Users\\myAccount> ';
-  color: #999999;
 }
 
-kbd.optoff,
-kbd.option {
-  border: none;
-  background: none;
-  margin: 0 1em 0 0;
-  vertical-align: middle;
+kbd.menu,
+kbd.option,
+kbd.optoff {
+  border-radius: unset;
+  background: rgb(240, 240, 240);
+  box-shadow: inset 0 0 1px rgb(255, 255, 255), inset 0 0 .4em rgb(200, 200, 200), 0 .1em 0 rgb(130, 130, 130), 0 .11em 0 rgba(0, 0, 0, .4);
 }
 
 kbd.optoff:before {
-  content: url('../images/checkbox-unchecked.png');
+  content: '\2610\00a0';
 }
 
 kbd.option:before {
-  content: url('../images/checkbox-checked.png');
-}
-
-kbd.menu {
-  border: none;
-  background: none;
-  font-weight: bold;
-  font-stretch: extra-condensed;
-  white-space: normal;
+  content: '\2611\00a0';
 }
 
 kbd.osc {
index acc41d039429d2236848d61b60582b7d884c405d..c6cff7ea1885d30d3ef4a53b36faf181c65a15af 100644 (file)
@@ -173,7 +173,6 @@ body {
   font-size: .9em;
   line-height: .9em; 
 }
-}
 
 #content figcaption.center {
   text-align: center;
@@ -213,17 +212,6 @@ body {
   width: 100%;
 }
 
-kbd {
-  text-shadow: 0 0 2px rgb(255, 255, 255);
-  box-shadow: inset 0 0 1px rgb(255, 255, 255), inset 0 0 .4em rgb(200, 200, 200), 0 .1em 0 rgb(130, 130, 130), 0 .11em 0 rgba(0, 0, 0, .4), 0 .1em .11em rgba(0, 0, 0, .9);
-}
-
-
-kbd.cmd {
-  text-shadow: none;
-  box-shadow: none;
-}
-
 #content p.center {
        text-align:center;
 }
diff --git a/source/images/checkbox-checked.png b/source/images/checkbox-checked.png
deleted file mode 100644 (file)
index d0b7690..0000000
Binary files a/source/images/checkbox-checked.png and /dev/null differ
diff --git a/source/images/checkbox-unchecked.png b/source/images/checkbox-unchecked.png
deleted file mode 100644 (file)
index d28b057..0000000
Binary files a/source/images/checkbox-unchecked.png and /dev/null differ