pebble/devsite/source/_sass/elements/gray-box.scss
2025-02-24 18:58:29 -08:00

68 lines
1.3 KiB
SCSS

/**
* Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.gray-box {
background-color: $gray-04;
border-radius: $base-border-radius;
margin-bottom: 1em;
overflow-x: hidden;
padding: 1em;
ul {
margin-bottom: 1em;
&:last-child {
margin-bottom: 0;
}
}
li {
margin-bottom: 0.2em;
&:last-child {
margin-bottom: 0;
}
}
h3 {
color: $gray-02;
font-size: 1.3em;
font-weight: 600;
text-transform: uppercase;
a,
a:hover,
a:active {
color: $gray-02;
}
a:hover,
a:active {
text-decoration: underline;
}
}
}
.gray-box--fixed {
overflow-y: auto;
}
.white-box {
background-color: $white;
border-radius: $base-border-radius;
margin-bottom: 1em;
padding: 0.5em;
}