_sass/rebuild/_base.scss in rebuild-theme-0.1.1 vs _sass/rebuild/_base.scss in rebuild-theme-0.2.0

- old
+ new

@@ -1,5 +1,6 @@ +/* test */ //do some resets body, h1, h2, h3, h4, h5, h6, p, blockquote, pre, hr, dl, dd, ol, ul, figure { margin: 0; @@ -7,39 +8,93 @@ } body { font: $base-font-weight #{$base-font-size}/#{$base-font-line-height} $base-font; + background-color: $rebuild-blue-dark; + color: $rebuild-white; + -webkit-text-size-adjust: 100%; + -webkit-font-feature-settings: "kern" 1; + -moz-font-feature-settings: "kern" 1; + -o-font-feature-settings: "kern" 1; + font-feature-settings: "kern" 1; + font-kerning: normal; + display: flex; + flex-direction: column; min-height: 100vh; + margin: 0; } h1, h2, h3, h4, h5, h6, p, blockquote, pre, ul, ol, dl, figure, %vertical-rhythm { - margin-bottom: 15px; //make this consistent and not grossly large + margin-bottom: 20px; //make this consistent and not grossly large } main { display: block; } +img { + max-width: 100%; + vertical-align: middle; +} + +figure > img { + display: block; +} + +figcaption { + font-size: relative($base-font-size,0.8); +} + + ul, ol { - margin-left: 15px; + margin-left: 20px; } li { > ul, > ol { margin-bottom: 0; } } h1,h2,h3,h4,h5,h6 { + font-family: $title-font; + font-weight: $title-font-bold; +} + +a { + transition: $transition-timing; font-weight: $bold-font-weight; + color: lighten($rebuild-blue, 20%); + text-decoration: none; + + &:visited { + color: lighten($rebuild-blue, 10%); + } + + &:hover { + color: lighten($rebuild-blue, 40%); + } } +blockquote { + color: $rebuild-grey; + border-left: 4px solid lighten($rebuild-grey, 10%); + padding-left: 20px; + @include relative(1.125); + letter-spacing: 1px; + font-style: italic; + + > :last-child { + margin-bottom: 0; + } +} + pre, code { @include relative(0.9375); border: 1px solid #fff; border-radius: 4px; @@ -56,7 +111,88 @@ > code { border: 0; padding-right: 0; padding-left: 0; + color: $rebuild-blue; + } +} + +.container { + max-width: 900px; + margin-top: 400px; + margin-right: auto; + margin-left: auto; + padding: 20px 20px 20px 20px; + background-color: $rebuild-white; + color: $rebuild-blue; + min-height: 100vh; + box-shadow: 0 -10px 30px -8px #666; + border-radius: 4px; + background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92U2hXHF/C1M8uP/ZtYdiuj26UdAdQQSXQErwSOMzt/XWRWAz5GuSBIkwG1H3FabJ2OsUOUhGC6tK4EMtJO0ttC6IBD3kM0ve0tJwMdSfjZo+EEISaeTr9P3wYrGjXqyC1krcKdhMpxEnt5JetoulscpyzhXN5FRpuPHvbeQaKxFAEB6EN+cYN6xD7RYGpXpNndMmZgM5Dcs3YSNFDHUo2LGfZuukSWyUYirJAdYbF3MfqEKmjM+I2EfhA94iG3L7uKrR+GdWD73ydlIB+6hgref1QTlmgmbM3/LeX5GI1Ux1RWpgxpLuZ2+I+IjzZ8wqE4nilvQdkUdfhzI5QDWy+kw5Wgg2pGpeEVeCCA7b85BO3F9DzxB3cdqvBzWcmzbyMiqhzuYqtHRVG2y4x+KOlnyqla8AoWWpuBoYRxzXrfKuILl6SfiWCbjxoZJUaCBj1CjH7GIaDbc9k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//noise pattern for background. remove if not want. + //questioning why this was done in this way will hurt my feelings so. don't + +} + +.header { + width: calc(100% - 40px); + padding: 12px 20px 8px 20px; + background-color: rgba(04,09,11,0); + position: fixed; + top: 0; + left: 50%; + transform: translateX(-50%); + + //we don't use a mixin here because the breakpoint-up mixin only works with the grid breakpoints defined in rebuild.scss + @media (min-width: 900px) { + width: 900px; + } + + a { + color: #fff; + text-shadow: 0 0 3px #000; + } +} + +.orange { + color: #FF4500; +} + +.grey { + color: $rebuild-grey; +} + +.svg-icon { + width: 16px; + height: 16px; + display: inline-block; + fill: currentColor; + padding: 5px 3px 2px 5px; + vertical-align: text-bottom; +} + +table { + margin-bottom: 20px; + width: 100%; + text-align: left; + color: lighten($rebuild-white, 18%); + border-collapse: collapse; + border: 1px solid lighten($rebuild-blue, 10%); + tr { + &:nth-child(even) { + background-color: lighten($rebuild-blue, 20%); + } + } + th, td { + padding: 6px 10px; + } + th { + background-color: lighten($rebuild-blue, 10%); + border: 1px solid darken($rebuild-blue, 15%); + border-bottom-color: darken($rebuild-blue, 20%); + font-weight: $bold-font-weight; + } + td { + border: 1px solid $rebuild-blue; } } \ No newline at end of file