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

126 lines
2.4 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.
*/
.markdown {
ul {
@extend %default-ul;
}
ol {
@extend %default-ol;
}
$table-border-color: $gray-06;
$table-border: 1px solid $table-border-color;
$table-background: $white;
$table-header-background: $gray-02;
$table-header-color: $white;
$table-hover-color: darken($table-background, 5);
$table-stripe-color: darken($table-background, 4);
$table-stripe-color-hover: darken($table-stripe-color, 5);
$table-padding: 0.5em;
table {
border: $table-border;
border-collapse: separate;
border-left: 0;
border-spacing: 0;
margin-bottom: 1em;
font-size: 0.9em;
}
tbody {
background-color: $table-background;
td {
border-bottom: 0;
border-left: 1px solid $table-border-color;
border-top: 1px solid $table-border-color;
padding: $table-padding;
}
tr:hover > td,
tr:hover > th {
background-color: $table-hover-color;
}
tr:nth-child(even) {
background-color: $table-stripe-color;
&:hover > td {
background-color: $table-stripe-color-hover;
}
}
}
thead {
th {
background-color: $table-header-background;
border-bottom: 0;
border-left: 1px solid $table-border-color;
color: $table-header-color;
padding: $table-padding;
font-weight: 600;
}
}
svg {
margin-bottom: 1em;
}
}
.markdown--staff,
.markdown--user {
// margin: 0 auto;
max-width: 43em;
}
.markdown--staff {
img {
display: block;
margin: 0 auto;
max-width: 100%;
}
}
.markdown--legal {
p {
text-align: justify;
}
ol {
list-style: none;
margin: 0;
padding: 0;
li {
margin-bottom: 0.5em;
}
li strong:first-child {
display: inline-block;
width: 4em;
}
}
}
.markdown--retreat {
padding-right: 1.5rem;
}