mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-14 20:35:58 -06:00
306 lines
3.9 KiB
CSS
306 lines
3.9 KiB
CSS
/* bobatheme is available under the MIT license at
|
|
* https://github.com/BBaoVanC/bobatheme.
|
|
*/
|
|
|
|
|
|
/* Post layout (in list pages) */
|
|
.post {
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.post-title {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.post-title a {
|
|
color: inherit;
|
|
text-decoration: inherit;
|
|
}
|
|
|
|
.post-meta-item {
|
|
margin-right: 10px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.post-metadata {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.tags {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.post-media {
|
|
margin-top: 15px;
|
|
display: inline-block;
|
|
}
|
|
|
|
.post-description {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.readmore {
|
|
margin-top: 5px;
|
|
}
|
|
|
|
|
|
|
|
/* Subsection formatting */
|
|
.section {
|
|
margin-bottom: 40px;
|
|
background-color: #222;
|
|
border-radius: 5px;
|
|
padding: 1px 25px;
|
|
}
|
|
|
|
.section:hover {
|
|
background-color: #333;
|
|
color: #fff;
|
|
}
|
|
|
|
.section-title {
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.section-anchor {
|
|
color: inherit;
|
|
}
|
|
|
|
.section-anchor:hover {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.section-description {
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.view-section {
|
|
margin-top: 5px;
|
|
}
|
|
|
|
|
|
|
|
/* Header formatting (website title and article section headers) */
|
|
.top {
|
|
margin: 20px;
|
|
}
|
|
|
|
.header a, .section-header a {
|
|
color: inherit;
|
|
}
|
|
|
|
.section-header-link svg {
|
|
width: 15px;
|
|
height: 15px;
|
|
}
|
|
|
|
|
|
|
|
/* Content formatting */
|
|
#table-of-contents {
|
|
background-color: #222;
|
|
padding: 8px 20px;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
#table-of-contents summary {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.content, footer {
|
|
margin: 20px;
|
|
}
|
|
|
|
footer {
|
|
text-align: center;
|
|
}
|
|
|
|
|
|
|
|
/* Navbar formatting */
|
|
.navbar, .langbar {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
flex-direction: row;
|
|
background-color: #222;
|
|
border-radius: 8px;
|
|
margin-top: 5px;
|
|
align-items: flex-start;
|
|
overflow: auto;
|
|
}
|
|
|
|
.navbar-item, .langbar-item {
|
|
/*flex-grow: 1;*/
|
|
padding: 8px 12px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
/*.navbar-item:first-child,
|
|
.langbar-item:first-child {
|
|
border-top-left-radius: 8px;
|
|
border-bottom-left-radius: 8px;
|
|
}
|
|
|
|
.navbar-item:last-child,
|
|
.langbar-item:last-child {
|
|
border-top-right-radius: 8px;
|
|
border-bottom-right-radius: 8px;
|
|
}*/
|
|
|
|
.navbar-item:hover, .langbar-item:hover {
|
|
background-color: #444;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.langbar-item.selected {
|
|
font-weight: bold;
|
|
}
|
|
|
|
|
|
|
|
/* Basic elements */
|
|
body {
|
|
background-color: #111;
|
|
color: lightgray;
|
|
font-family: "Open Sans", "Noto Sans", sans-serif;
|
|
margin: auto;
|
|
max-width: 720px;
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
img, video {
|
|
max-width: 100%;
|
|
}
|
|
|
|
figure.border img, figure.border video {
|
|
padding: 5px;
|
|
border: 7px solid #1b5b9b;
|
|
}
|
|
|
|
figure {
|
|
margin: auto;
|
|
}
|
|
|
|
figcaption {
|
|
font-style: italic;
|
|
font-size: small;
|
|
text-align: center;
|
|
}
|
|
|
|
a {
|
|
color: #4da6ff;
|
|
text-decoration: inherit;
|
|
}
|
|
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
blockquote {
|
|
border-left: 5px solid #333;
|
|
padding-left: 15px;
|
|
}
|
|
|
|
hr {
|
|
border-color: #444;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
|
|
|
|
/* Code blocks */
|
|
.highlight > pre {
|
|
padding: 12px 8px;
|
|
overflow: auto;
|
|
}
|
|
|
|
:not(pre) > code {
|
|
background-color: #282828;
|
|
padding: 2px 4px;
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
code {
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.chroma .lnt {
|
|
display: block;
|
|
} /* fixes line numbers on firefox when there's only one line */
|
|
|
|
|
|
|
|
/* Icons */
|
|
.icon {
|
|
width: 20px;
|
|
height: 20px;
|
|
color: lightgray;
|
|
text-align: center;
|
|
display: inline;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
h1 svg.icon {
|
|
width: 30px;
|
|
height: 30px;
|
|
}
|
|
|
|
|
|
|
|
/* Pagination */
|
|
.pagination {
|
|
list-style: none;
|
|
text-align: center;
|
|
}
|
|
|
|
.page-item {
|
|
display: inline;
|
|
}
|
|
|
|
.page-link {
|
|
padding: 8px 16px;
|
|
border-radius: 5px;
|
|
color: lightgray;
|
|
}
|
|
|
|
.page-item.active .page-link {
|
|
background-color: #163b64;
|
|
color: inherit;
|
|
}
|
|
|
|
.page-item.active .page-link:hover {
|
|
background-color: #2b72c0;
|
|
color: white;
|
|
}
|
|
|
|
.page-link:hover {
|
|
background-color: #444;
|
|
color: white;
|
|
text-decoration: none;
|
|
}
|
|
|
|
|
|
|
|
/* Print compatibility */
|
|
@media print {
|
|
.top, .section-header-link {
|
|
display: none;
|
|
}
|
|
|
|
.icon {
|
|
color: black;
|
|
}
|
|
|
|
:not(pre) > code {
|
|
background-color: lightgray;
|
|
}
|
|
|
|
body {
|
|
background-color: white;
|
|
color: black;
|
|
}
|
|
}
|