aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2017-04-27 12:35:15 +0100
committerMike McQuaid2017-04-27 12:35:15 +0100
commita559cef5cc6f947ac4126dfeb84aa1df143be633 (patch)
tree75200b478618622ffb92369145dd8660fbc174b9
parent9427934aca9073d95f3e661d8d047ceb851b9175 (diff)
downloadbrew-a559cef5cc6f947ac4126dfeb84aa1df143be633.tar.bz2
docs: tweak CSS.
Import new brew.sh CSS changes to improve the appearance of tables and links.
-rw-r--r--.gitignore1
-rw-r--r--docs/css/screen.css43
2 files changed, 36 insertions, 8 deletions
diff --git a/.gitignore b/.gitignore
index 31dedcc93..f7770612e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -44,6 +44,7 @@
/docs/bin
/docs/vendor
/docs/Gemfile.lock
+/docs/.jekyll-metadata
# Unignore our shell completion
!/completions
diff --git a/docs/css/screen.css b/docs/css/screen.css
index 2f1e84ce1..836edac15 100644
--- a/docs/css/screen.css
+++ b/docs/css/screen.css
@@ -33,7 +33,7 @@ ul { margin-left: 20px; }
a { text-decoration: none; cursor: pointer; color: #ba832c; font-weight: bold; }
a:focus { outline: 1px dotted; }
a:visited { }
-a:hover, a:focus { color: #d3a459; text-decoration: none; }
+a:hover, a:focus { color: #d3a459; text-decoration: underline; }
a *, button * { cursor: pointer; }
hr { display: none; }
small { font-size: 90%; }
@@ -87,7 +87,6 @@ h1 a,
h1 a:hover {
color: #F9D094;
font-weight: 900;
- text-decoration: none;
}
#wrap {
@@ -158,12 +157,8 @@ pre code {
box-shadow: 0 -1px 0 rgba(0,0,0,0.5);
}
-#home ol, #page ol, .postcontent ol {
- list-style: decimal;
-}
-
#home ul, #page ul, .postcontent ul {
- list-style: disc;
+ list-style: inherit;
}
#home h1, #page h1 {
@@ -195,6 +190,39 @@ pre code {
font-size: 80%;
}
+table {
+ border-collapse: separate;
+ border: solid rgba(0,0,0,0.4) 1px;
+ border-radius: 0.4em;
+ -moz-border-radius: 0.4em;
+ -webkit-border-radius: 0.4em;
+ margin-top: 1em;
+}
+
+.full-width {
+ width: 100%;
+}
+
+table td, th {
+ padding: 0.1em 1em;
+}
+
+table code {
+ font-size: 130%;
+}
+
+.number-data {
+ text-align: right;
+}
+
+table tr:nth-child(odd) {
+ background: rgba(0,0,0,0.2);
+}
+
+table tr th, table tr:nth-child(even) {
+ background: rgba(0,0,0,0.4);
+}
+
/*}}}*/
/* @section Informations {{{
@@ -248,7 +276,6 @@ pre code {
box-shadow: 0 0 5px rgba(0,0,0,0.4);
-moz-box-shadow: 0 0 5px rgba(0,0,0,0.4);
-webkit-box-shadow: 0 0 5px rgba(0,0,0,0.4);
- text-decoration: none;
font-size: larger;
}