]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/css/lilypond-website.css
Doc: CSS: Add space between top-levels in sidebar
[lilypond.git] / Documentation / css / lilypond-website.css
index e5bf19280dd47d3533d0566051b95ebfe9b11206..fb90a9defcee6faa7f4db1f153a10431bd58de34 100644 (file)
@@ -13,12 +13,18 @@ body {
   width: 99%;
   min-width: 42em;
   max-width: 70em;
-  font-size: 95%;
+  font-size: 0.95em;
   line-height: 1.5;
-  background: #fff url(../pictures/background-image.png) no-repeat 0 0;
   text-align: justify;
   padding: 0;
   margin: 0 auto;
+  /* fallback for IE8 which doesn't support multiple backgrounds */
+  background: url(../pictures/background-top-left.png) no-repeat top left;
+  background-color: rgb(245, 252, 242);
+  background-image: url(../pictures/background-top-right.png),
+    url(../pictures/background-top-left.png);
+  background-position: top right, top left;
+  background-repeat: no-repeat, no-repeat;
 }
 
 hr {
@@ -67,15 +73,16 @@ div#tocframe {
   top: 0;
   left: 0;
   right: 0;
-  background: #6aec7c url(../pictures/nav-bg.png) repeat-x top left;
+  background: rgb(35, 155, 80);
+  background: linear-gradient(to top,
+    rgb(25, 115, 50),
+    rgb(45, 205, 115));
   max-width: 70em;
-  font-size: 100%;
+  font-size: 1em;
   line-height: 1;
   padding: 0;
-  -moz-border-radius-bottomleft: 7px;
-  -moz-border-radius-bottomright: 7px;
-  -webkit-border-bottom-left-radius: 7px;
-  -webkit-border-bottom-right-radius: 7px;
+  border-bottom-left-radius: 7px;
+  border-bottom-right-radius: 7px;
   margin: 0;
 }
 
@@ -91,36 +98,16 @@ div#tocframe {
 }
 
 #tocframe > ul:first-child > li:first-child a {
-  text-indent: -999em;
-  background: #6aec7c url(../pictures/lily-home-nav-bg.png) no-repeat 50% 50%;
-  width: 9%;
-  /* css3 no go yet? */
-  border-bottom-left-radius: 30px;
-  -moz-border-radius-bottomleft: 7px;
-  -webkit-border-bottom-left-radius: 7px;
-}
-
-#tocframe > ul:first-child > li:first-child a:hover {
-  background: #6aec7c url(../pictures/lily-home-nav-hover.png) no-repeat 50% 50%;
-  width: 9%;
+  border-bottom-left-radius: 7px;
 }
 
-#tocframe > ul:first-child > li:first-child.toc_current a {
-  text-indent: -999em;
-  background: url(../pictures/lily-home-nav-active.png) no-repeat 50% 50%;
-  width: 9%;
-}
-
-#tocframe > ul:first-child > li:first-child.toc_current a:hover {
-  text-indent: -999em;
-  background: url(../pictures/lily-home-nav-active.png) no-repeat 50% 50%;
-  width: 9%;
+#tocframe > ul:first-child > li:first-child a span {
+  background: url(../pictures/lily-home-32x32.png) no-repeat scroll 0% 40% transparent;
+  padding: 16px 0px 16px 38px;
 }
 
 #tocframe > ul:first-child > li:last-child {
-  width: 9%;
-  -moz-border-radius-bottomright: 7px;
-  -webkit-border-bottom-right-radius: 7px;
+  border-bottom-right-radius: 7px;
 }
 
 #tocframe li {
@@ -132,55 +119,57 @@ div#tocframe {
 /* search box */
 #tocframe li form {
   float: left;
-  width: 17%;
-  background: #6aec7c url(../pictures/nav-bg.png);
-  font-size: 100%;
-  padding: 0.45em 0.8%;
-  margin: 0;
+  width: 16%;
+  font-size: 1em;
+  padding: 0.5em 0.8%;
+  margin: 0 0 0 1%;
 }
 
 #tocframe li form input {
   display: block;
   float: left;
-  width: 95%;
-  font-size: 100%;
-  padding: 0.1em;
+  width: 92%;
+  font-size: 0.9em;
+  color: rgb(85, 85, 85);
+  background: rgb(235, 242, 232);
+  padding: 0.1em 0.1em 0.1em 0.6em;
   border: 0;
   margin: 0;
-  -moz-border-radius-topright: 20px;
-  -moz-border-radius-bottomright: 20px;
-  -webkit-border-top-right-radius: 20px;
-  -webkit-border-bottom-right-radius: 20px;
+  border-radius: 7px;
 }
 
 #tocframe li form input[type="hidden"] {
   position: relative;
   height: 0;
   overflow: hidden;
-  text-indent: -999em;
   padding: 0;
   margin: 0;
 }
 
 #tocframe li a {
-  background: #6aec7c url(../pictures/nav-bg.png);
   float: left;
-  width: 18%;
+  width: 16%;
   text-align: center;
   font-weight: bold;
   padding: 0.68em 0;
   margin: 0;
+  border-right: 1px solid rgba(25, 100, 40, 0.25);
 }
 
 #tocframe li a:hover {
-  background: url(../pictures/nav-hover.png);
+  background: rgb(45, 165, 90);
+  background: linear-gradient(to top,
+    rgb(35, 125, 60),
+    rgb(55, 215, 125));
 }
 
 #tocframe li.toc_current a,
 #tocframe li.toc_current a:hover {
-  background: url(../pictures/nav-active.png);
+  background: rgb(0, 120, 30);
+  background: linear-gradient(to top,
+    rgb(0, 85, 20),
+    rgb(15, 175, 85));
   color: #fff;
-  text-decoration: underline;
 }
 
 /* second level toc (unnumberedsec) */
@@ -189,7 +178,7 @@ div#tocframe {
   top: 3.8em;
   left: 0.5%;
   right: 0.5%;
-  font-size: 82%;
+  font-size: 0.82em;
   padding: 0;
   margin: 0;
 }
@@ -201,23 +190,23 @@ div#tocframe {
 }
 
 #tocframe .toc .toc li:first-child a {
-  -moz-border-radius-topleft: 7px;
-  -moz-border-radius-bottomleft: 7px;
-  -webkit-border-top-left-radius: 7px;
-  -webkit-border-bottom-left-radius: 7px;
+  border-top-left-radius: 7px;
+  border-bottom-left-radius: 7px;
+  border-left: 1px solid rgba(85, 130, 70, 0.25);
 }
 
 #tocframe .toc .toc li:last-child a {
-  -moz-border-radius-topright: 7px;
-  -moz-border-radius-bottomright: 7px;
-  -webkit-border-top-right-radius: 7px;
-  -webkit-border-bottom-right-radius: 7px;
+  border-top-right-radius: 7px;
+  border-bottom-right-radius: 7px;
 }
 
 #tocframe .toc .toc li a {
   float: left;
   width: auto;
-  background: #ceffae;
+  background: rgb(165, 215, 150);
+  background: linear-gradient(to top,
+    rgb(130, 200, 110),
+    rgb(200, 230, 190));
   line-height: 2;
   color: #000;
   text-decoration: none;
@@ -225,86 +214,22 @@ div#tocframe {
   font-weight: normal;
   padding: 0 0.5em;
   margin: 0;
+  border-right: 1px solid rgba(85, 130, 70, 0.25);
 }
 
 #tocframe .toc .toc li a:hover {
-  background: #bdee9d;
-}
-
-/* colored second-level TOC items */
-#tocframe .toc .toc li.color1 a {
-  background: #9ccc7c url(../pictures/color1-bg.png) repeat-x top left;
-}
-
-#tocframe .toc .toc li.color2 a {
-  background: #bbcf81 url(../pictures/color2-bg.png) repeat-x top left;
-}
-
-#tocframe .toc .toc li.color3 a {
-  background: #dbd286 url(../pictures/color3-bg.png) repeat-x top left;
-}
-
-#tocframe .toc .toc li.color4 a {
-  background: #fad58c url(../pictures/color4-bg.png) repeat-x top left;
-}
-
-#tocframe .toc .toc li.colorDefault a {
-  background: #8cbc6c url(../pictures/nav-bg-2.png) repeat-x top left;
-  color: #fff;
-}
-
-#tocframe .toc .toc li.colorDefault a:hover {
-  background: #8cbc6c url(../pictures/nav-hover-2.png) repeat-x top left;
-  color: #fff;
-}
-
-#tocframe .toc .toc li.color1 a:hover {
-  background: #addd8d url(../pictures/color1-hover.png) repeat-x top left;
-}
-
-#tocframe .toc .toc li.color2 a:hover {
-  background: #ccdf92 url(../pictures/color2-hover.png) repeat-x top left;
-}
-
-#tocframe .toc .toc li.color3 a:hover {
-  background: #ece297 url(../pictures/color3-hover.png) repeat-x top left;
-}
-
-#tocframe .toc .toc li.color4 a:hover {
-  background: #fbe69d url(../pictures/color4-hover.png) repeat-x top left;
+  background: rgb(175, 225, 160);
+  background: linear-gradient(to top,
+    rgb(140, 210, 120),
+    rgb(210, 240, 200));
 }
 
 #tocframe .toc .toc li.toc_current a,
 #tocframe .toc .toc li.toc_current a:hover {
-  color: #000;
-  text-decoration: underline;
-}
-
-#tocframe .toc .toc li.colorDefault.toc_current a,
-#tocframe .toc .toc li.colorDefault.toc_current a:hover {
-  background: #8cbc6c url(../pictures/nav-active-2.png) repeat-x top left;
-  color: #fff;
-  text-decoration: underline;
-}
-
-#tocframe .toc .toc li.color1.toc_current a,
-#tocframe .toc .toc li.color1.toc_current a:hover {
-  background: #beee9e url(../pictures/color1-active.png) repeat-x top left;
-}
-
-#tocframe .toc .toc li.color2.toc_current a,
-#tocframe .toc .toc li.color2.toc_current a:hover {
-  background: #ddefa3 url(../pictures/color2-active.png) repeat-x top left;
-}
-
-#tocframe .toc .toc li.color3.toc_current a,
-#tocframe .toc .toc li.color3.toc_current a:hover {
-  background: #fdf4a8 url(../pictures/color3-active.png) repeat-x top left;
-}
-
-#tocframe .toc .toc li.color4.toc_current a,
-#tocframe .toc .toc li.color4.toc_current a:hover {
-  background: #fcf7ae url(../pictures/color4-active.png) repeat-x top left;
+  background: rgb(135, 185, 120);
+  background: linear-gradient(to top,
+    rgb(100, 170, 80),
+    rgb(170, 200, 160));
 }
 
 /* third level toc (unnumberedsubsec) */
@@ -312,7 +237,7 @@ div#tocframe {
   position: absolute;
   top: 2em;
   left: 5%;
-  font-size: 100%;
+  font-size: 1em;
 }
 
 #tocframe .toc .toc .toc li {
@@ -363,7 +288,6 @@ div#main {
   overflow: auto;
 }
 
-/* FIXME: does not work in IE<=6 */
 #main > a:first-child {
   position: absolute;
   top: -10em;
@@ -407,14 +331,8 @@ div#cmws {
 
 div#quickSummary {
   text-align: left;
-  margin: 4em 13em 0 0;
-}
-
-#quickSummary .subheading {
-  background: #fff url(../pictures/summary-gradient.png) repeat-y 0 0;
-  color: #fff;
-  padding: 0 0.5em;
-  margin: 0;
+  margin: 3em 14em 25px 0;
+  font-size: 1.25em;
 }
 
 #quickSummary p {
@@ -422,29 +340,25 @@ div#quickSummary {
   margin: 0;
 }
 
-div.separator {
-  background: transparent url(../pictures/squiggle.jpg) no-repeat 40% 60%;
-  height: 36px;
-  clear: both;
-  padding: 10px;
+#homepage-main {
+  padding: 0;
+  margin: 0 14em 1em 0;
 }
 
-div#news {
-  padding: 0;
-  margin: 0 13em 1em 0;
+#homepage-example-image-wrapper {
+  padding: 3em 0em 1.5em;
 }
 
-div.news-item {
+.example-image-wrapper {
+  padding: 2em 0em 0.5em;
 }
 
-.news-item .subsubheading {
-  text-align: left;
-  padding: 0 0 0 0.5em;
-  border-bottom: 1px solid #5b7f64;
-  margin: 0;
-  overflow: hidden;
+.example-image-wrapper img {
+  padding: 0em 0em 1em;
 }
 
+/* .news-item is styled below with columns */
+
 .testimonial-item {
   /* Not sure how to style the testimonials */
   clear: both;
@@ -465,48 +379,28 @@ div.news-item {
   padding: 0 0.5em;
 }
 
-.news-item p {
-  text-align: left;
-  padding: 0.5em;
-  margin: 0;
-}
-
-div#latestVersion {
+#homepage-sidebar {
   position: absolute;
-  top: 12.4em;
+  top: 0;
   right: 0;
   width: 12em;
-  text-align: center;
-  border-left: 1px solid #5b7f64;
+  text-align: left;
+  /* negate the top-margin of the first .subheading */
+  margin-top: -0.5em;
 }
 
-#latestVersion .subheading {
+#homepage-sidebar .subheading {
+  font-size: 1em;
   background: #5b7f64;
   color: #fff;
-  text-align: center;
-  padding: 0 0.5em;
-  margin: 0;
-}
-
-/* this might not work in certain browsers */
-a[name="Stable"] + h4 {
-  background: #bdee9d url(../pictures/color1-bg.png) repeat-x top left;
-}
-
-/* this might not work in certain browsers */
-a[name="Unstable"] + h4 {
-  background: #fad58c url(../pictures/color3-bg.png) repeat-x top left;
-}
-
-#latestVersion .subsubheading {
-  padding: 0.08em 0.25em;
-  border-bottom: 1px solid #5b7f64;
-  margin: 0;
+  padding: 0.2em 0.5em 0.1em 0.7em;
+  margin: 0.5em 0 0.7em;
+  border-radius: 5px;
 }
 
-#latestVersion p {
-  font-size: 90%;
-  padding: 0.5em;
+#homepage-sidebar p,
+#pondingsText {
+  padding: 0em 0.5em 0.5em;
   margin: 0;
 }
 
@@ -587,7 +481,7 @@ h1.unnumbered, h2.unnumberedsec, h3.unnumberedsubsec {
 table {
   text-align: left;
   padding: 0 0 0 0.5em;
-  border-left: 3px solid green;
+  border-left: 3px solid #5b7f64;
   margin: 1em 0 0 1em;
 }
 
@@ -626,12 +520,15 @@ img.float-right {
 }
 
 div.float-left a.clickable,
-div.float-center a.clickable,
 div.float-right a.clickable {
   text-decoration: overline;
   margin-left: 1em;
 }
 
+div.float-center a.clickable {
+  text-decoration: overline;
+}
+
 .clear-both {
   clear: both;
 }
@@ -652,6 +549,8 @@ div.float-right a.clickable {
 }
 
 /* Columns */
+
+/* color1 */
 .column-center-top {
   float: left;
   width: 99.5%;
@@ -660,11 +559,14 @@ div.float-right a.clickable {
   margin: 1em auto;
 }
 
-/* color1 */
-.column-center-top h3 {
-  background: #9ccc7c url(../pictures/color1-bg.png) repeat-x top left;
+.column-center-middle-color2,
+.column-center-middle-color3,
+.news-item {
+  clear: both;
+  float: left;
+  width: 99.5%;
   text-align: left;
-  border-bottom: 1px solid #9ccc7c;
+  margin: 1em auto;
 }
 
 .column-left-top {
@@ -680,18 +582,6 @@ div.float-right a.clickable {
   margin: 1em 0;
 }
 
-.column-left-top,
-.column-left-bottom {
-  border: 1px solid #adce82;
-}
-
-/* color2 */
-.column-left-top h3,
-.column-left-bottom h3 {
-  background: #adce82 url(../pictures/color2-bg.png) repeat-x top left;
-  border-bottom: 1px solid #adce82;
-}
-
 .column-right-top {
   float: right;
   width: 49%;
@@ -704,54 +594,110 @@ div.float-right a.clickable {
   margin: 1em 0;
 }
 
-.column-right-top,
-.column-right-bottom {
-  border: 1px solid #bdd088;
+/* color2 */
+.column-left-top,
+.column-left-bottom,
+.column-center-middle-color2,
+.news-item {
+  border: 1px solid #adce82;
 }
 
 /* color3 */
-.column-right-top h3,
-.column-right-bottom h3 {
-  background: #bdd088 url(../pictures/color3-bg.png) repeat-x top left;
-  border-bottom: 1px solid #bdd088;
+.column-right-top,
+.column-right-bottom,
+.column-center-middle-color3 {
+  border: 1px solid #bdd088;
 }
 
+/* color4 */
 .column-center-bottom {
   clear: both;
+  float: left;
   width: 99.5%;
   text-align: center;
   border: 1px solid #ccd38f;
   margin: 1em auto 0;
 }
 
-/* color4 */
-.column-center-bottom h3 {
-  background: #ccd38f url(../pictures/color4-bg.png) repeat-x top left;
-  text-align: left;
-  border-bottom: 1px solid #ccd38f;
-}
-
 .column-center-top,
+.column-center-middle-color2,
+.column-center-middle-color3,
 .column-center-bottom,
 .column-left-top,
 .column-left-bottom,
 .column-right-top,
-.column-right-bottom {
-  background: #f5fffa;
+.column-right-bottom,
+.news-item {
+  background: #fff;
+  border-radius: 5px;
+}
+
+/* color1 */
+.column-center-top h3 {
+  background: #9ccc7c;
+  background: linear-gradient(to top,
+    rgb(140, 210, 118),
+    rgb(212, 242, 201));
+  text-align: left;
+  border-bottom: 1px solid #9ccc7c;
+}
+
+/* color2 */
+.column-left-top h3,
+.column-left-bottom h3,
+.column-center-middle-color2 h3,
+.news-item h3 {
+  background: #adce82;
+  background: linear-gradient(to top,
+    rgb(173, 206, 130),
+    rgb(221, 243, 204));
+  border-bottom: 1px solid #adce82;
+}
+
+.news-item h3 {
+  font-size: 1em;
+}
+
+/* color3 */
+.column-right-top h3,
+.column-right-bottom h3,
+.column-center-middle-color3 h3 {
+  background: #bdd088;
+  background: linear-gradient(to top,
+    rgb(189, 208, 136),
+    rgb(231, 243, 207));
+  border-bottom: 1px solid #bdd088;
+}
+
+/* color4 */
+.column-center-bottom h3 {
+  background: #ccd38f;
+  background: linear-gradient(to top,
+    rgb(204, 211, 143),
+    rgb(237, 244, 208));
+  text-align: left;
+  border-bottom: 1px solid #ccd38f;
 }
 
 .column-center-top h3,
+.column-center-middle-color2 h3,
+.column-center-middle-color3 h3,
 .column-center-bottom h3,
 .column-left-top h3,
 .column-left-bottom h3,
 .column-right-top h3,
-.column-right-bottom h3 {
+.column-right-bottom h3,
+.news-item h3 {
   text-align: left;
-  padding: 0 0.5em;
+  padding: 3px 0.5em 0;
   margin: 0;
+  border-top-left-radius: 5px;
+  border-top-right-radius: 5px;
 }
 
 .column-center-top h4,
+.column-center-middle-color2 h4,
+.column-center-middle-color3 h4,
 .column-center-bottom h4,
 .column-left-top h4,
 .column-left-bottom h4,
@@ -762,7 +708,15 @@ div.float-right a.clickable {
   margin: 0 0 0.5em 0;
 }
 
+/* Used for google summer of code project ideas, for example. */
+.bigger-subsubheadings h4 {
+  font-size: 1.17em;
+  margin: 1.5em 0 0.5em 0;
+}
+
 .column-center-top ul,
+.column-center-middle-color2 ul,
+.column-center-middle-color3 ul,
 .column-center-bottom ul,
 .column-left-top ul,
 .column-left-bottom ul,
@@ -774,6 +728,8 @@ div.float-right a.clickable {
 }
 
 .column-center-top li,
+.column-center-middle-color2 li,
+.column-center-middle-color3 li,
 .column-center-bottom li,
 .column-left-top li,
 .column-left-bottom li,
@@ -785,6 +741,8 @@ div.float-right a.clickable {
 }
 
 .column-center-top p,
+.column-center-middle-color2 p,
+.column-center-middle-color3 p,
 .column-center-bottom p,
 .column-left-top p,
 .column-left-bottom p,
@@ -795,6 +753,10 @@ div.float-right a.clickable {
 
 .column-center-top img.float-left,
 .column-center-top img.float-right,
+.column-center-middle-color2 img.float-left,
+.column-center-middle-color2 img.float-right,
+.column-center-middle-color3 img.float-left,
+.column-center-middle-color3 img.float-right,
 .column-center-bottom img.float-left,
 .column-center-bottom img.float-right,
 .column-left-top img.float-left,
@@ -808,62 +770,6 @@ div.float-right a.clickable {
   margin: 0.5em;
 }
 
-/* Centered divs by color */
-div.color1,
-div.color2,
-div.color3,
-div.color4 {
-  clear: both;
-  width: 99.5%;
-  background: #f5fffa;
-  margin: 1em auto;
-}
-
-div.color1 h3,
-div.color2 h3,
-div.color3 h3,
-div.color4 h3 {
-  padding: 0 0.5em;
-  margin: 0;
-}
-
-div.color1 {
-  border: 1px solid #9ccc7c;
-  margin: 1em auto;
-}
-
-div.color1 h3 {
-  background: #9ccc7c;
-  border-bottom: 1px solid #9ccc7c;
-}
-
-div.color2 {
-  border: 1px solid #adce82;
-}
-
-div.color2 h3 {
-  background: #adce82;
-  border-bottom: 1px solid #adce82;
-}
-
-div.color3 {
-  border: 1px solid #bdd088;
-}
-
-div.color3 h3 {
-  background: #bdd088;
-  border-bottom: 1px solid #bdd088;
-}
-
-div.color4 {
-  border: 1px solid #ccd38f;
-}
-
-div.color4 h3 {
-  background: #ccd38f;
-  border-bottom: 1px solid #ccd38f;
-}
-
 .keep-bullets ul {
   list-style-type: disc;
   padding: 0;
@@ -878,6 +784,7 @@ div.color4 h3 {
   padding : 0em;
   border-left: 2px;
   margin: 0em;
+  width: 67%;
 }
 
 .normal-table table td {
@@ -904,37 +811,26 @@ div.color4 h3 {
   overflow: auto;
 }
 
-.warning {
+.warning,
+.contactBox {
   background: #eef;
   text-align: left;
-  padding: 0;
-  border: 1px solid green;
-  /* Experimental rounded corners */
-  -moz-border-radius: 10px;
-  -webkit-border-radius: 10px;
   margin: 1em;
-}
-
-.warning p {
-  padding: 0.5em;
-  margin: 0;
+  padding: 0;
+  border: 1px solid rgb(160, 160, 175);
+  border-radius: 5px;
 }
 
 .contactBox {
   float: left;
-  background: #eef;
-  text-align: left;
-  border: 1px solid green;
-  padding: 0;
-  margin: 1em;
 }
 
+.warning p,
 .contactBox p {
   padding: 0.5em;
   margin: 0;
 }
 
-
 .hide {
   position: relative;
   text-indent: -999em;