mirror of
https://github.com/google/pebble.git
synced 2025-07-16 02:56:43 -04:00
Import the pebble dev site into devsite/
This commit is contained in:
parent
3b92768480
commit
527858cf4c
1359 changed files with 265431 additions and 0 deletions
103
devsite/source/_sass/base/_typography.scss
Normal file
103
devsite/source/_sass/base/_typography.scss
Normal file
|
@ -0,0 +1,103 @@
|
|||
/**
|
||||
* 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.
|
||||
*/
|
||||
|
||||
body {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
background-color: $base-background-color;
|
||||
color: $base-font-color;
|
||||
font-family: $base-font-family;
|
||||
font-size: $base-font-size;
|
||||
line-height: $unitless-line-height;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: $header-font-family;
|
||||
line-height: $header-line-height;
|
||||
margin: 0 0 0.5em 0;
|
||||
text-rendering: optimizeLegibility; // Fix the character spacing for headings
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: $base-font-size * 2.25; // 16 * 2.25 = 36px
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: $base-font-size * 2; // 16 * 2 = 32px
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: $base-font-size * 1.75; // 16 * 1.75 = 28px
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: $base-font-size * 1.5; // 16 * 1.5 = 24px
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: $base-font-size * 1.25; // 16 * 1.25 = 20px
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: $base-font-size;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0 0 ($base-line-height * .5);
|
||||
}
|
||||
|
||||
a {
|
||||
@include transition(color 0.1s linear);
|
||||
color: $base-link-color;
|
||||
text-decoration: none;
|
||||
|
||||
&:hover {
|
||||
color: $hover-link-color;
|
||||
}
|
||||
|
||||
&:active, &:focus {
|
||||
color: $hover-link-color;
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
|
||||
hr {
|
||||
border-bottom: 1px solid $base-border-color;
|
||||
border-left: none;
|
||||
border-right: none;
|
||||
border-top: none;
|
||||
margin: $base-line-height 0;
|
||||
}
|
||||
|
||||
img {
|
||||
margin: 0;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
border-left: 2px solid $base-border-color;
|
||||
color: lighten($base-font-color, 15);
|
||||
margin: $base-line-height 0;
|
||||
padding-left: $base-line-height / 2;
|
||||
}
|
||||
|
||||
cite {
|
||||
color: lighten($base-font-color, 25);
|
||||
font-style: italic;
|
||||
|
||||
&:before {
|
||||
content: '\2014 \00A0';
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue