- Refactored themes to always load with just a single file. This avoids a round trip on each request. - Locally load font when available on the system, then try to load the woff2 file, then fall back to regular woff. - Update markup to use relative urls where it is safe. RSS feeds still use absolute URLs. - Only set og:image:(height/width) when using the standard color icon. - Fixed styles on the pagination buttons. - Added ability to switch font to Source Code Pro (useSourceCodePro). - Added yellow theme. - Added grey theme. - Bold and remove underline for active page in header. - Removed markdownify on summary. - Only display date if present.
94 lines
1.5 KiB
CSS
94 lines
1.5 KiB
CSS
.button-container {
|
|
display: table;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
button,
|
|
.button,
|
|
a.button {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 8px 18px;
|
|
margin-bottom: 5px;
|
|
text-decoration: none;
|
|
text-align: center;
|
|
border-radius: 0;
|
|
border: 1px solid var(--accent);
|
|
background: var(--accent);
|
|
font: inherit;
|
|
font-weight: bold;
|
|
appearance: none;
|
|
cursor: pointer;
|
|
outline: none;
|
|
|
|
&:hover {
|
|
background: color-mod(var(--accent) a(90%));
|
|
}
|
|
|
|
/* variants */
|
|
|
|
&.outline {
|
|
background: transparent;
|
|
box-shadow: none;
|
|
padding: 8px 18px;
|
|
|
|
:hover {
|
|
transform: none;
|
|
box-shadow: none;
|
|
}
|
|
}
|
|
|
|
&.link {
|
|
background: none;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
/* sizes */
|
|
|
|
&.small {
|
|
font-size: .8rem;
|
|
}
|
|
|
|
&.wide {
|
|
min-width: 200px;
|
|
padding: 14px 24px;
|
|
}
|
|
}
|
|
|
|
a.read-more,
|
|
a.read-more:hover,
|
|
a.read-more:active {
|
|
display: inline-flex;
|
|
border: none;
|
|
color: var(--accent);
|
|
background: none;
|
|
box-shadow: none;
|
|
padding: 0;
|
|
margin: 20px 0;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.code-toolbar {
|
|
margin-bottom: 20px;
|
|
|
|
.toolbar-item a {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 3px 8px;
|
|
margin-bottom: 5px;
|
|
text-decoration: none;
|
|
text-align: center;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
border-radius: 8px;
|
|
border: 1px solid transparent;
|
|
appearance: none;
|
|
cursor: pointer;
|
|
outline: none;
|
|
}
|
|
} |