docbrown/app/assets/stylesheets/index-comments.scss
Nick Taylor 957d1887b7 More themeable mixin in action (#2646)
* More themeable mixin in action.

* Missed a CSS var to themeable mixin.
2019-05-01 20:33:25 -04:00

74 lines
1.8 KiB
SCSS

@import 'variables';
@import 'mixins';
.index-comments {
text-align: left;
padding-bottom: calc(0.6vw + 5px);
@include themeable(background, theme-container-background, #fff);
border-radius: 3px;
@include themeable(border, theme-container-border, 1px solid $outline-color);
@include themeable(box-shadow, theme-container-box-shadow, $bold-shadow);
margin: auto;
margin-top: 8px;
width: 94%;
@media screen and (min-width: 950px) {
margin-top: 12px;
}
@media screen and (min-width: 950px) {
width: 100%;
}
.breadcrumb {
margin-top: 10px;
margin-left: 5px;
text-decoration: underline;
a {
padding: 5px 10px;
@include themeable(color, theme-color, $dark-gray);
font-weight: 500;
font-size: 0.85em;
}
}
header {
padding: calc(1vw + 3px) 13px 0.5vw;
margin: 0;
font-size: 17px;
font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier,
monospace;
@media screen and (min-width: 430px) {
font-size: 19px;
}
h4 {
margin: 0;
font-weight: 500;
}
}
a {
@include themeable(color, theme-color, $black);
display: block;
padding-left: 13px;
padding-right: 13px;
}
.single-comment {
padding: 3px 0px;
font-size: 16px;
&.strong-comment {
.comment-title {
font-weight: 600;
}
}
.comment-date {
font-size: 0.7em;
@include themeable(color, theme-secondary-color, $medium-gray);
margin-left: 5px;
vertical-align: 2px;
display: inline-block;
}
.comment-preview {
font-size: 0.9em;
@include themeable(color, theme-secondary-color, $medium-gray);
}
@media screen and (min-width: 430px) {
padding: 5px 0px;
font-size: 18.5px;
}
}
}