|
| 1 | +/** |
| 2 | + * Copyright 2025 Google LLC |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + * you may not use this file except in compliance with the License. |
| 6 | + * You may obtain a copy of the License at |
| 7 | + * |
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * |
| 10 | + * Unless required by applicable law or agreed to in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + * See the License for the specific language governing permissions and |
| 14 | + * limitations under the License. |
| 15 | + */ |
| 16 | + |
| 17 | +@use 'bourbon/bourbon'; |
| 18 | + |
| 19 | +@use 'colors'; |
| 20 | + |
| 21 | +@use 'base/base'; |
| 22 | +@use 'responsive/responsive'; |
| 23 | +@use 'font-awesome/font-awesome'; |
| 24 | + |
| 25 | +@use 'header'; |
| 26 | +@use 'footer'; |
| 27 | + |
| 28 | + |
| 29 | +@use 'elements/alert'; |
| 30 | +@use 'elements/buttons'; |
| 31 | +@use 'elements/form'; |
| 32 | +@use 'elements/mobile-nav'; |
| 33 | +@use 'elements/highlight'; |
| 34 | +@use 'elements/inline-list'; |
| 35 | +@use 'elements/markdown'; |
| 36 | +@use 'elements/screenshot'; |
| 37 | +@use 'elements/sidebar'; |
| 38 | +@use 'elements/spinner'; |
| 39 | +@use 'elements/table'; |
| 40 | +// @import 'elements/terminal'; |
| 41 | +@use 'elements/toc'; |
| 42 | +// @import 'elements/typeahead'; |
| 43 | +// @import 'elements/video'; |
| 44 | +@use 'elements/bigbox'; |
| 45 | +@use 'elements/full-height'; |
| 46 | +@use 'elements/sectionmenu'; |
| 47 | +@use 'elements/search'; |
| 48 | +@use 'elements/gray-box'; |
| 49 | +@use 'elements/ribbon'; |
| 50 | +@use 'elements/pagination'; |
| 51 | +@use 'elements/landing-slider'; |
| 52 | +@use 'elements/platform-choice'; |
| 53 | +@use 'elements/dual-image'; |
| 54 | + |
| 55 | +@use 'sections/getting-started'; |
| 56 | + |
| 57 | +@use 'libs/slick'; |
| 58 | +@use 'mmenu/jquery.mmenu.all.scss'; |
| 59 | + |
| 60 | +@use 'sections/events'; |
| 61 | +@use 'sections/blog'; |
| 62 | +@use 'sections/documentation'; |
| 63 | +@use 'sections/examples'; |
| 64 | +@use 'sections/guides'; |
| 65 | +@use 'sections/retreat'; |
| 66 | +@use 'sections/inspiration'; |
| 67 | +@use 'sections/round'; |
| 68 | +@use 'sections/sdk'; |
| 69 | + |
| 70 | +@use 'debug'; |
| 71 | +@use "base/variables"; |
| 72 | +@use "bourbon/addons/font-family"; |
| 73 | +@use "bourbon/css3/box-sizing"; |
| 74 | +@use "responsive/utilities/variables" as utilities-variables; |
| 75 | + |
| 76 | +.mm-page { |
| 77 | + height: 100%; |
| 78 | + position: inherit; |
| 79 | + |
| 80 | + > div { |
| 81 | + height: 100%; |
| 82 | + } |
| 83 | +} |
| 84 | + |
| 85 | +.mmenu__wrapper { |
| 86 | + height: 100%; |
| 87 | +} |
| 88 | + |
| 89 | +.mm-opened, |
| 90 | +.mm-opening { |
| 91 | + .mm-page { |
| 92 | + margin-top: -1 * header.$header-height; |
| 93 | + } |
| 94 | + |
| 95 | + .content { |
| 96 | + padding-top: header.$header-height; |
| 97 | + } |
| 98 | +} |
| 99 | + |
| 100 | +.color-picker polygon { |
| 101 | + cursor: pointer; |
| 102 | +} |
| 103 | + |
| 104 | +.size-helper { |
| 105 | + position: fixed; |
| 106 | + bottom: 0; |
| 107 | + right: 0; |
| 108 | + background-color: #222; |
| 109 | + color: #fff; |
| 110 | + font-size: 0.8em; |
| 111 | +} |
| 112 | + |
| 113 | +.modal-content { |
| 114 | + background-color: colors.$gray-01; |
| 115 | +} |
| 116 | + |
| 117 | +.header--skinny { |
| 118 | + font-weight: normal; |
| 119 | +} |
| 120 | + |
| 121 | +.header--flat-bottom { |
| 122 | + margin-bottom: 0; |
| 123 | +} |
| 124 | + |
| 125 | +video { |
| 126 | + max-width: 100%; |
| 127 | +} |
| 128 | + |
| 129 | +.video--fullwidth { |
| 130 | + width: 100%; |
| 131 | +} |
| 132 | + |
| 133 | +.embed.embed--youtube { |
| 134 | + position: relative; |
| 135 | + padding-bottom: 56.25%; |
| 136 | + height: 0; |
| 137 | + overflow: hidden; |
| 138 | + max-width: 100%; |
| 139 | + |
| 140 | + iframe, |
| 141 | + .video-wrapper { |
| 142 | + position: absolute; |
| 143 | + top: 0; |
| 144 | + left: 0; |
| 145 | + width: 100%; |
| 146 | + height: 100%; |
| 147 | + } |
| 148 | +} |
| 149 | +* { |
| 150 | + @include box-sizing.box-sizing(border-box); |
| 151 | +} |
| 152 | + |
| 153 | +body, |
| 154 | +html { |
| 155 | + height: 100%; |
| 156 | + margin: 0; |
| 157 | + padding: 0; |
| 158 | +} |
| 159 | + |
| 160 | +body { |
| 161 | + padding-top: header.$header-height; |
| 162 | + background-color: colors.$gray-01; |
| 163 | +} |
| 164 | + |
| 165 | +.anchor[id], |
| 166 | +.anchor[name] { |
| 167 | + &::before { |
| 168 | + content: ' '; |
| 169 | + display: block; |
| 170 | + height: header.$header-height; |
| 171 | + margin-top: -0.7 * header.$header-height; |
| 172 | + visibility: hidden; |
| 173 | + } |
| 174 | +} |
| 175 | + |
| 176 | +.hidden { |
| 177 | + visibility: hidden; |
| 178 | +} |
| 179 | + |
| 180 | +code { |
| 181 | + background-color: colors.$white; |
| 182 | + border-radius: 2px; |
| 183 | + color: color.scale(variables.$base-font-color, $lightness: -33.7748344371%); |
| 184 | + font-family: font-family.$monospace; |
| 185 | + font-size: utilities-variables.$base-font-size; |
| 186 | + padding: 2px 4px; |
| 187 | + box-shadow: inset 0 0 2px #bbb; |
| 188 | +} |
| 189 | + |
| 190 | +a code { |
| 191 | + color: color.scale(variables.$base-link-color, $lightness: -30.1775147929%); |
| 192 | +} |
| 193 | + |
| 194 | +.container { |
| 195 | + max-width: none; |
| 196 | + padding: 1em; |
| 197 | + position: relative; |
| 198 | +} |
| 199 | + |
| 200 | +.vcenter { |
| 201 | + display: table-cell; |
| 202 | + vertical-align: middle; |
| 203 | +} |
| 204 | + |
| 205 | +.vcenter--wrapper { |
| 206 | + display: table; |
| 207 | + width: 100%; |
| 208 | +} |
| 209 | + |
| 210 | +.hcenter { |
| 211 | + display: table-cell; |
| 212 | + position: relative; |
| 213 | + left: 50%; |
| 214 | + transform: translateX(-50%); |
| 215 | +} |
| 216 | + |
| 217 | +.hcenter--wrapper { |
| 218 | + display: table; |
| 219 | + width: 100%; |
| 220 | + text-align: center; |
| 221 | + margin: 0 auto; |
| 222 | +} |
| 223 | + |
| 224 | +.pagetitle { |
| 225 | + text-transform: uppercase; |
| 226 | + line-height: 1.1; |
| 227 | + |
| 228 | + a { |
| 229 | + color: utilities-variables.$base-text-color; |
| 230 | + |
| 231 | + &:hover { |
| 232 | + text-decoration: underline; |
| 233 | + } |
| 234 | + } |
| 235 | +} |
| 236 | + |
| 237 | +.pagetitle--skinny { |
| 238 | + margin: 0; |
| 239 | +} |
| 240 | + |
| 241 | +.pagesubtitle { |
| 242 | + font-weight: normal; |
| 243 | + font-size: 1.4em; |
| 244 | + text-transform: uppercase; |
| 245 | + color: #999; |
| 246 | + margin-bottom: 1em; |
| 247 | +} |
| 248 | + |
| 249 | +.noscript--hide { |
| 250 | +} |
| 251 | + |
| 252 | +.noscript--show { |
| 253 | + display: none; |
| 254 | +} |
| 255 | + |
| 256 | +.git-contributors { |
| 257 | + li { |
| 258 | + display: inline-block; |
| 259 | + margin-right: 0.5em; |
| 260 | + |
| 261 | + &:after { |
| 262 | + content: ', '; |
| 263 | + } |
| 264 | + |
| 265 | + &:last-child { |
| 266 | + |
| 267 | + &:after { |
| 268 | + content: ''; |
| 269 | + } |
| 270 | + } |
| 271 | + } |
| 272 | +} |
| 273 | + |
| 274 | +.stop-scrolling { |
| 275 | + height: 100%; |
| 276 | + overflow: hidden; |
| 277 | +} |
0 commit comments