/www/style.css
http://github.com/cgay/wiki · CSS · 389 lines · 297 code · 70 blank · 22 comment · 0 complexity · 41891784af466791e3b8b01946350bb6 MD5 · raw file
- /*
- * Basic page layout looks like this:
- * ----------------------------------------
- * | header-left header-right |
- * ----------------------------------------
- * | navigation | options menu |
- * | | ----------------------- |
- * | | |
- * | | content |
- * | | |
- * ----------------------------------------
- * | footer |
- * ----------------------------------------
- *
- * The entire section between the header and footer is called the "midsection".
- */
- body {
- font-family: "Lucida Grande", Verdana, Arial, sans-serif;
- color: #666;
- line-height: 1.5em;
- padding: 1em;
- }
- h1, h2, h3, h4 {
- color: #555;
- }
- h2 em {
- font-style: italic;
- }
- fieldset {
- border: none;
- padding: 1em 0;
- }
- #logo {
- display: inline;
- float: left;
- margin-bottom: 1.5em;
- position: relative;
- }
- #header-left {
- float: left;
- }
- #header-right {
- float: right;
- }
- #header-right form {
- margin: 0;
- }
- #header-right form::before {
- content: url(images/search.png);
- }
- #header-right a {
- border: none;
- }
- #header-right span.user-info::before {
- content: url(images/user.png);
- }
- #header-right span.not-logged-in {
- padding-left: 20px;
- }
- #content {
- width: 70%;
- float: left;
- display: inline-block;
- margin-left: 10px;
- margin-right: 10px;
- margin-bottom: 10px;
- }
- #midsection {
- clear: both;
- padding-top: 1em;
- }
- #midsection > ul ul, #midsection > ul ul ul {
- padding-left: 1em;
- }
- hr {
- clear: both;
- }
- #midsection > ul {
- padding: 0;
- }
- #navigation {
- float: left;
- }
- #navigation > li {
- margin-bottom: 2em;
- }
- #navigation > li ul {
- padding-top: 0.2em;
- }
- #navigation ul {
- list-style-type: square;
- }
- #navigation ul ul {
- padding-top: 0.3em;
- padding-bottom: 1em;
- list-style-type: circle;
- }
- #navigation a {
- border: none; /* don't display default underline for links */
- }
- #navigation a:visited {
- color: #58a;
- }
- #footer {
- font-size: 0.8em;
- margin-top: 1em;
- clear: both;
- }
- blockquote p::before {
- content: "\00BB";
- }
- blockquote p::after {
- content: "\00AB";
- }
- blockquote {
- line-height: 2em;
- font-family: Georgia, "Times New Roman", Times, serif;
- word-spacing: 0.2em;
- letter-spacing: 1pt;
- font-style: italic;
- margin-left: 1em;
- }
- blockquote + cite {
- float: right;
- margin: -1em 5em 2em 0;
- }
- blockquote + cite + hr {
- visibility: hidden;
- }
- #footer {
- text-align: center;
- }
- a {
- color: #58a;
- border: none;
- text-decoration: none;
- padding-bottom: 0px;
- }
- a:visited {
- color: #152772;
- text-decoration: none;
- padding-bottom: 0px;
- }
- a:hover {
- color: #58a;
- text-decoration: none;
- padding-bottom: 0px;
- border-bottom: 1px dotted black;
- }
- h2 {
- padding-top: 2em;
- margin-bottom: 1em;
- }
- h2:first-child {
- padding-top: 0;
- border-top: none;
- }
- body hr {
- border: none;
- margin: 2em 0 0 0;
- padding: 0;
- border: 0;
- line-height: 0px;
- height: 1px;
- display: block;
- }
- h2, #midsection, body hr {
- border-top: 0.1em dashed #ccc;
- }
- h3 {
- margin-bottom: 0.2em;
- padding-bottom: 0.1em;
- }
- h2 a {
- text-decoration: underline;
- }
- small.date {
- font-style: italic;
- margin-left: 0.5em;
- }
- #menu {
- float: right;
- background-color: #8bd;
- color: white;
- height: 2em;
- color: white;
- font-weight: bold;
- display: block;
- text-align: center;
- margin: 0 0 1em 0;
- }
- #menu ul {
- margin: 0;
- padding: 0;
- }
- #menu span {
- display: block;
- margin: 0.3em 0.5em;
- display: block;
- }
- #menu li {
- color: white;
- display: none;
- padding: 0 0.4em;
- margin: 0;
- }
- #menu a {
- color: white;
- border-bottom-color: white;
- }
- #menu:hover {
- width: auto;
- height: auto;
- }
- #menu:hover span {
- text-align: center;
- /* display: none; */
- }
- #menu:hover li {
- display: block;
- }
- label {
- display: block;
- font-weight: bold;
- margin: 0 -1em;
- }
- form table {
- text-align: center;
- }
- input[type=checkbox], input[type=radio] {
- margin: 0 1em 0 0;
- display: inline;
- }
- input + label {
- display: inline;
- }
- fieldset ol {
- list-style-type: none;
- padding: 0 2em;
- }
- fieldset li {
- margin: 0 0 2em 0;
- }
- ul.striped li:nth-child(odd) {
- background-color: #fcfcfc;
- }
- ul.big li {
- padding: 0.3em;
- margin: 0;
- }
- ul.big {
- list-style-type: square;
- }
- span.version {
- line-height: 0;
- }
- span.version a {
- border: none;
- }
- #changes dd {
- font-style: italic;
- }
- p.hint {
- margin: 0 1.5em ;
- padding: 1em;
- }
- .hint::before {
- content: url(images/info.png);
- }
- #diff {
- width: 100%;
- }
- span.object {
- line-height: 2em;
- font-weight: bold;
- }
- .page,
- .user {
- padding-left: 0.2em;
- }
- .page::before {
- content: url(images/page.png);
- }
- .user::before {
- content: url(images/user.png);
- }
- #search-form,
- #search-form fieldset,
- #search-form ol,
- #search-form li {
- display: inline;
- margin: 0;
- padding: 0;
- }
- #cse-search-box div {
- display: inline;
- margin: 0;
- padding: 0;
- }
- /* For use in <input>, <textarea>, etc elements themselves to indicate
- the entered value was invalid.
- */
- .invalid-input {
- background-color: yellow;
- }
- /* For use with the explanatory text associated with an invalid input field.
- */
- .field-error, .page-errors {
- color: red;
- }
- #comment-input {
- width: 30em;
- }
- pre {
- background: #cdf;
- border: 1px solid #679;
- color: #235;
- padding: 0.5em;
- }