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