github.com/chalford/terraform@v0.3.7-0.20150113080010-a78c69a8c81f/website/source/assets/stylesheets/_docs.scss (about) 1 // 2 // Docs 3 // -------------------------------------------------- 4 5 body.page-sub{ 6 background-color: $light-black; 7 } 8 9 body.layout-atlas, 10 body.layout-consul, 11 body.layout-dnsimple, 12 body.layout-cloudflare, 13 body.layout-google, 14 body.layout-heroku, 15 body.layout-mailgun, 16 body.layout-digitalocean, 17 body.layout-aws, 18 body.layout-docs, 19 body.layout-inner, 20 body.layout-downloads, 21 body.layout-intro{ 22 background: $light-black image-url('sidebar-wire.png') left 62px no-repeat; 23 24 >.container{ 25 .col-md-8[role=main]{ 26 min-height: 800px; 27 background-color: white; 28 29 >div{ 30 position: relative; 31 z-index: 10; 32 } 33 } 34 } 35 } 36 37 .docs-sidebar{ 38 position: relative; 39 z-index: 20; 40 margin-bottom: 30px; 41 margin-top: 50px; 42 margin-right: 4%; 43 44 a{ 45 color: $purple; 46 } 47 48 .docs-sidenav{ 49 padding-top: 15px; 50 padding-bottom: 15px; 51 52 :last-child{ 53 border-bottom: none; 54 } 55 56 //all li > a 57 li{ 58 position: relative; 59 60 > a{ 61 color: white; 62 @include transition( color 0.5s ease ); 63 } 64 65 > a:hover, 66 > a:focus { 67 background-color: transparent !important; 68 color: white; 69 @include transition( color 0.5s ease ); 70 } 71 } 72 73 74 > li { 75 padding: 10px 0; 76 margin: 0 30px; 77 78 >.nav{ 79 li{ 80 a{ 81 color: white; 82 } 83 } 84 } 85 86 &.active { 87 >a{ 88 color: lighten($purple, 4%); 89 font-weight: 500; 90 } 91 92 &:before{ 93 content: ''; 94 position: absolute; 95 width: 6px; 96 height: 8px; 97 background-color: $purple; 98 font-weight: 500; 99 @include skewY(24deg); 100 top: 26px; 101 left: -10px; 102 } 103 > a{ 104 -webkit-font-smoothing: antialiased; 105 } 106 107 /*> a:hover, 108 > a:focus { 109 font-weight: $font-weight-lato-xb; 110 }*/ 111 112 .nav { 113 display: block; 114 115 li.active a { 116 color: lighten($purple, 4%); 117 font-weight: 500; 118 } 119 } 120 } 121 122 > a { 123 text-transform: uppercase; 124 -webkit-font-smoothing: antialiased; 125 } 126 } 127 128 .nav { 129 display: none; 130 margin-bottom: 15px; 131 132 > li{ 133 margin-left: 20px; 134 135 > a{ 136 -webkit-font-smoothing: antialiased; 137 padding: 6px 15px; 138 } 139 } 140 } 141 142 .nav-visible { 143 display: block; 144 } 145 } 146 } 147 148 149 .bs-docs-section{ 150 padding-top: 10px; 151 padding-left: 3%; 152 padding-bottom: 80px; 153 154 .lead{ 155 margin-bottom: 48px 156 } 157 158 .doc-sectional{ 159 margin-bottom: 48px; 160 } 161 162 p, li, .alert { 163 font-size: 20px; 164 font-family: $font-family-open-sans; 165 font-weight: $font-weight-open; 166 line-height: 1.5em; 167 margin: 0 0 18px; 168 -webkit-font-smoothing: antialiased; 169 } 170 171 pre{ 172 margin: 0 0 18px; 173 } 174 175 a{ 176 color: $purple; 177 &:hover{ 178 text-decoration: underline; 179 } 180 } 181 182 img{ 183 max-width: 650px; 184 margin-top: 25px; 185 margin-bottom: 25px; 186 } 187 188 h1{ 189 color: $purple; 190 text-transform: uppercase; 191 padding-bottom: 24px; 192 margin-top: 40px; 193 margin-bottom: 24px; 194 border-bottom: 1px solid #eeeeee; 195 @include lato-light(); 196 } 197 198 h2, h3, h4{ 199 margin-bottom: 16px; 200 } 201 202 #graph { 203 margin-top: 30px; 204 } 205 } 206 207 208 @media (max-width: 992px) { 209 body.layout-docs, 210 body.layout-inner, 211 body.layout-intro{ 212 >.container{ 213 .col-md-8[role=main]{ 214 min-height: 0; 215 &::before { 216 border-left: 9999px solid white; 217 } 218 } 219 } 220 } 221 222 body.page-sub{ 223 >.container{ 224 background-color: white; 225 } 226 } 227 228 .docs-sidebar{ 229 margin-top: 0px; 230 margin-bottom: 0px; 231 232 .docs-sidenav{ 233 padding-bottom: 0; 234 235 //all li > a 236 li{ 237 > a{ 238 color: black; 239 @include transition( color 0.5s ease ); 240 } 241 242 > a:hover, 243 > a:focus { 244 color: $purple; 245 @include transition( color 0.5s ease ); 246 } 247 } 248 249 250 > li { 251 >.nav{ 252 li{ 253 a{ 254 color: black; 255 256 &:hover{ 257 color: $purple; 258 } 259 } 260 } 261 } 262 } 263 } 264 } 265 266 .bs-docs-section{ 267 h1{ 268 padding-top: 24px; 269 border-top: 1px solid #eeeeee; 270 } 271 } 272 } 273 274 @media (max-width: 480px) { 275 .bs-docs-section{ 276 img{ 277 max-width: 450px; 278 } 279 280 h1{ 281 font-size: 32px; 282 } 283 } 284 } 285