diff options
author | Leighton <git@leightski.co.uk> | 2023-02-02 03:32:25 +0000 |
---|---|---|
committer | Laura Arjona Reina <larjona@debian.org> | 2023-02-04 15:28:49 +0000 |
commit | da8affb8273213cf58199b7fa71c44094c0ab237 (patch) | |
tree | b655037b40f736e6585e988e42ba21e763e87bb0 /english/debhome.css | |
parent | 5f1bf2696d4f10f3f5c163f98e26776534f834cb (diff) |
Update css formatting across all debian *.css files to be more consistent
Removed excessive white space, set consistent tab spacing, replaced named colours (white and black) with hex values (#fff and #000) as well as replacing padding and margin values with more compact versions where possible.
'font-awesome.css' & 'docbook.css' are the only css files not modified in this commit.
Diffstat (limited to 'english/debhome.css')
-rw-r--r-- | english/debhome.css | 93 |
1 files changed, 44 insertions, 49 deletions
diff --git a/english/debhome.css b/english/debhome.css index 0e6fb7af7eb..060f31498b1 100644 --- a/english/debhome.css +++ b/english/debhome.css @@ -25,7 +25,7 @@ #splash { background-image: url('Pics/homeworld-bg.png'); - background-position:top center; + background-position: top center; background-repeat: no-repeat; background-size: cover; margin-top: 0; @@ -36,25 +36,25 @@ } #splash h1 { background-image: url('Pics/homeworld-fg.png'); - background-position:top center; - padding-top:130px; - overflow:hidden; - text-align:center; - background-repeat:no-repeat; - display:block; - margin:0; - height:0; + background-position: top center; + padding-top: 130px; + overflow: hidden; + text-align: center; + background-repeat: no-repeat; + display: block; + margin: 0; + height: 0; } -/* move the foreground image to the left for narrow screens */ -/* thanks Antoine Le Gonidec https://lists.debian.org/debian-www/2021/08/msg00034.html */ - +/* + Move the foreground image to the left for narrow screens + Thanks Antoine Le Gonidec https://lists.debian.org/debian-www/2021/08/msg00034.html +*/ @media screen and (max-width: 650px) { - #splash h1 { - background-position-x: left; - } + #splash h1 { + background-position-x: left; + } } - span.download { display: block; font-size: 0.75em; @@ -63,7 +63,7 @@ span.download { margin-top: 10px; } span.download a { - color: white; + color: #fff; font-weight: bold; text-decoration: none; border: 0.15em solid #339900; @@ -73,7 +73,7 @@ span.download a { } span.download a:hover { text-decoration: none; - color: white; + color: #fff; background-color: #339900; } span.download a em { @@ -87,7 +87,7 @@ span.download a em { margin-bottom: 1em; } span.download a:hover em { - color: white; + color: #fff; background-color: #339900; } #announce { @@ -101,17 +101,16 @@ span.download a:hover em { padding-top: 0; } #intro p { - margin-top: 0em; - padding:0; + margin-top: 0; + padding: 0; } /* Homepage Links */ - #hometoc { - list-style:none; - margin: 0 0 2em 0; + list-style: none; + margin: 0 0 2em; padding: 0; - width:100%; + width: 100%; font-size: 0.75em; overflow: hidden; line-height: 1.5em; @@ -128,11 +127,11 @@ ul#hometoc-cola a, ul#hometoc-colb a, ul#hometoc-colc a, ul#hometoc-cold a, ul#h display: block; } ul#hometoc-cola, ul#hometoc-colb,ul#hometoc-colc, ul#hometoc-cold, ul#hometoc-cole { - float:left; + float: left; width: 19.2%; min-width: 11em; - min-height: 15em; /* Update when adding items */ - margin:0 1% 0 0; + min-height: 15em; /* Update when adding items */ + margin: 0 1% 0 0; padding: 0; border-bottom: dotted red; border-width: 1px; @@ -140,43 +139,43 @@ ul#hometoc-cola, ul#hometoc-colb,ul#hometoc-colc, ul#hometoc-cold, ul#hometoc-co } ul#hometoc-cole { width: 18.9%; - margin-right:0; + margin-right: 0; } #hometoc-wrap { - padding:1em 1em 1em 1em; - border-top: 1px solid white; + padding: 1em; + border-top: 1px solid #fff; } #hometoc a { margin: 0; } #hometoc ul{ list-style: none; - padding: 0 0 0 0; + padding: 0; } #hometoc ul ul { padding: 0; } #hometoc li { - text-indent:0; + text-indent: 0; background-color: transparent; - font-weight:bold; + font-weight: bold; } #hometoc li ul { margin: 0; padding: 0; } #hometoc li li { - margin:0; - text-indent:0; - padding:0; + margin: 0; + text-indent: 0; + padding: 0; margin-left: 1em; - font-weight:normal; - border:0; - background-image:none; - background-color:transparent; + font-weight: normal; + border: 0; + background-image: none; + background-color: transparent; } #hometoc li li a:before { - content:"» "; + content: "» "; width: 1em; } #hometoc li li a { @@ -191,8 +190,8 @@ li.frontbutton { border-width: 1px; } .infobar { - margin: 0 0 2em 0; - padding: 0 0 2em 0; + margin: 0 0 2em; + padding: 0 0 2em; line-height: 1em; font-size: 0.75em; border-bottom: dotted grey; @@ -200,15 +199,11 @@ li.frontbutton { clear: both; } -/* - * For small screens - */ - +/* For small screens */ @media only screen and (max-width: 38em) { div#content { background-image: none; } - span.download { display: block; position: relative; |