satchlj.com/themes/zenn/sass/_components.scss

186 lines
3.8 KiB
SCSS

/**
* Logo banner.
*/
header#banner {
.logo {
display: inline-block;
margin: 0.5em 0;
padding: 0.5em 1em;
overflow: visible;
white-space: nowrap;
text-decoration: none;
user-select: none;
transition: border-color 0.2s ease-in-out,
color 0.2s ease-in-out,
background-color 0.2s ease-in-out;
color: $logo-color;
border: $logo-color solid 0.2em;
font-family: $font-logo;
font-size: 1.2rem;
font-weight: 700;
letter-spacing: 0.075em;
line-height: 1;
text-transform: uppercase;
&:hover {
border-color: $logo-color-hover !important;
color: $logo-color-hover !important;
}
&:active {
border-color: $logo-color-hover !important;
color: $logo-color-hover !important;
background-color: rgba($logo-color-hover, 0.2) !important;
}
}
section.actions {
a.theme-toggle,
a.navbar-toggle {
padding: 0.35em;
width: 1.5em;
height: 1.5em;
svg {
max-width: none !important;
max-height: none !important;
}
}
}
}
/**
* HTML elements in pages.
*/
content {
pre {
padding: 0.5em;
overflow: auto;
font-family: $font-mono;
box-sizing: border-box;
background-color: $color-main-bg-alt;
border: 1px solid $color-main-border;
box-shadow: 0 0 10px 5px rgba($color-main-border, 0.4);
border-radius: 4px;
transition: background-color 0.2s ease,
box-shadow 0.2s ease,
border 0.2s ease;
}
img, video {
overflow: scroll;
max-width: 100%;
border-radius: 4px;
}
code {
padding: 0 0.25em;
display: inline-block;
font-family: $font-mono;
background-color: $color-main-bg-alt;
border-radius: 4px;
transition: background-color 0.2s ease,
color 0.2s ease;
}
table {
display: block;
overflow: auto;
max-width: 100%;
border: 1px dashed $color-main-border;
border-spacing: 0.5em;
border-collapse: separate;
td {
min-width: 10em;
}
}
iframe {
overflow: auto;
max-width: 100%;
}
blockquote {
border-left: 4px solid $color-main-bg-alt;
margin-left: 0;
margin-right: 0;
padding-left: 1em;
transition: border 0.2s ease;
}
.comments-container {
padding: 10px;
background-color: #fff;
border-radius: 5px;
transition: box-shadow 0.2s ease;
@if $dark == true {
box-shadow: inset 0 0 10px rgba($color-main-bg, 0.7), 0 0 10px rgba($color-main-border, 0.7);
}
}
}
/**
* Text style modifiers.
*/
.muted {
color: $color-text-muted;
transition: color 0.2s ease;
}
.meta {
font-family: $font-main;
}
/**
* Tags
*/
.tags {
display: flex;
flex-wrap: wrap;
}
.tag {
background-color: $color-main-bg-alt;
display: inline-block;
border: 1px solid $color-main-border;
border-radius: 3px;
font-family: $font-main;
padding: 0.2em 0.4em;
line-height: 1;
margin: 0 0.2em 0.2em 0;
transition: box-shadow 0.2s ease,
background-color 0.2s ease,
border 0.2s ease;
}
a.tag {
&:hover, &:active, &:focus {
box-shadow: 0 0 10px 5px rgba($color-main-border, 0.3);
}
&:focus {
background-color: rgba($color-link, 0.1);
}
&:active {
background-color: rgba($color-link-hover, 0.2);
}
}
/**
* Title anchors
*/
.anchor {
transition: opacity 0.2s ease;
opacity: 0;
}
*:hover > .anchor,
.anchor:active,
.anchor:focus {
opacity: 1;
}