mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-30 00:23:24 -05:00
88ec7d88d1
Organize CSS and Javascript files into directories, separating vendor source code from home-grown. Separate new properties and selectors in Bootstrap CSS (already edited for Hugo) from: 1. Original property values; and 2. Changed property values. For the home page: 1. Clarify the English text; 2. Add some element names to classes in CSS selectors (to speed loading); 3. Document the Owl Carousel and Highlight.js versions; 4. Add Owl Carousel's license; 5. Restore HTML comments to browser source views; 6. Make the beginning GitHub button transparent on focus (like the others); 7. For the final, colored Twitter and Github buttons: a. Remove the dotted box on focus; and b. Color them green on active. 8. To increase (layout/) source readability: a. Place `class` attributes before `href` attributes; b. In `class` attributes, place more-specific class names before less-specific; and c. Comment the beginnings and ends of Bootstrap rows. 9. To increase understandability during development: a. Document the meaning of CSS file, `HPstyles` by renaming it to `home-page-style`; b. Move inline styling to CSS stylesheets; c. Separate @media queries to a file; d. Separate the inline Owl Carousel custom Javascript to a file; e. Use regular Owl Carousel CSS files instead of minified ones; and f. Rename the wide, landscape desk background image filename from `desk-long` to `desk-wide`.
51 lines
1.5 KiB
CSS
51 lines
1.5 KiB
CSS
/*
|
|
* Default theme - Owl Carousel CSS File
|
|
*/
|
|
.owl-theme .owl-nav {
|
|
margin-top: 10px;
|
|
text-align: center;
|
|
-webkit-tap-highlight-color: transparent; }
|
|
.owl-theme .owl-nav [class*='owl-'] {
|
|
color: #FFF;
|
|
font-size: 14px;
|
|
margin: 5px;
|
|
padding: 4px 7px;
|
|
background: #D6D6D6;
|
|
display: inline-block;
|
|
cursor: pointer;
|
|
-webkit-border-radius: 3px;
|
|
-moz-border-radius: 3px;
|
|
border-radius: 3px; }
|
|
.owl-theme .owl-nav [class*='owl-']:hover {
|
|
background: #869791;
|
|
color: #FFF;
|
|
text-decoration: none; }
|
|
.owl-theme .owl-nav .disabled {
|
|
opacity: 0.5;
|
|
cursor: default; }
|
|
.owl-theme .owl-nav.disabled + .owl-dots {
|
|
margin-top: 10px; }
|
|
.owl-theme .owl-dots {
|
|
text-align: center;
|
|
-webkit-tap-highlight-color: transparent; }
|
|
.owl-theme .owl-dots .owl-dot {
|
|
display: inline-block;
|
|
zoom: 1;
|
|
*display: inline; }
|
|
.owl-theme .owl-dots .owl-dot span {
|
|
width: 10px;
|
|
height: 10px;
|
|
margin: 5px 7px;
|
|
background: #D6D6D6;
|
|
display: block;
|
|
-webkit-backface-visibility: visible;
|
|
-webkit-transition: opacity 200ms ease;
|
|
-moz-transition: opacity 200ms ease;
|
|
-ms-transition: opacity 200ms ease;
|
|
-o-transition: opacity 200ms ease;
|
|
transition: opacity 200ms ease;
|
|
-webkit-border-radius: 30px;
|
|
-moz-border-radius: 30px;
|
|
border-radius: 30px; }
|
|
.owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span {
|
|
background: #869791; }
|