packer-cn/website/source/assets/stylesheets/_styles.scss

174 lines
2.2 KiB
SCSS

* {
margin: 0;
}
html,
body {
margin: 0;
display: flex;
min-height: 100vh;
flex-direction: column;
}
html {
-webkit-tap-highlight-color: transparent;
-webkit-font-smoothing: antialiased;
}
body {
background-color: $background;
font-family: $font-family-open-sans;
font-size: $base-font-size;
font-weight: 400;
line-height: $base-line-height;
}
.home {
h1, h2, h3, h4, h5, h6 {
font-family: $font-family-klavika;
letter-spacing: 1px;
font-weight: normal;
}
}
h1 {
font-size: 42px;
line-height: (80/70);
@include respond-to(mobile) {
font-size: 50px;
line-height: (50/45);
}
}
h2 {
font-size: 36px;
line-height: (50/40);
text-transform: uppercase;
&.has-dividers {
//overflow: auto !important;
display: table-cell;
text-align: center;
vertical-align: middle;
@include respond-to(mobile) {
display: block;
}
}
}
h3 {
font-size: 24px;
line-height: (30/20);
}
h4 {
font-family: $font-family-mono;
font-size: 20px;
line-height: (30/20);
}
h5 {
font-size: 16px;
line-height: (22/16);
}
h6 {
font-family: $font-family-mono;
font-size: 16px;
line-height: (22/16);
}
p {
&.large-text {
font-size: 20px;
}
a {
color: $green;
&:hover {
color: darken($green, 30%);
}
&:active {
color: darken($green, 50%);
}
}
}
a {
color: inherit;
text-decoration: none;
&:hover {
color: inherit;
text-decoration: none;
}
}
dt {
font-size: 18px;
}
dd {
font-size: 17px;
line-height: 1.5;
margin-bottom: 30px;
}
ul, ol {
margin: 0;
padding: 0;
list-style-type: none;
}
em {
font-style: italic;
}
strong {
font-weight: bold;
}
small, .small {
font-size: 13px;
}
hr {
margin: ($baseline * 2) 0;
border-color: $gray-mid;
border-bottom: 0;
}
pre {
background-color: $black;
color: $white;
margin: $baseline 0;
}
table {
font-family: $font-family-mono;
margin: ($baseline * 2) 0;
color: $gray-dark;
th {
color: $black;
font-weight: normal !important;
padding-right: $baseline;
}
td {
padding-right: $baseline;
}
}
::selection {
background: #ffff00; /* Safari */
color: $black;
}
::-moz-selection {
background: #ffff00; /* Firefox */
color: $black;
}