werc-1.5.0-tweaks/pub/style/style.css

363 lines
5.8 KiB
CSS
Raw Normal View History

2022-04-07 14:48:37 +00:00
/* latin-ext */
@font-face {
font-family: 'Source Serif Pro';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://nunosempere.com/.resources/source-serif-pro-latin-ext.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Source Serif Pro';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://nunosempere.com/.resources/source-serif-pro-latin.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Body */
2022-04-12 02:15:09 +00:00
2022-03-10 07:22:29 +00:00
body {
display: flex;
flex-wrap: wrap;
2023-03-08 07:37:40 +00:00
font-family: serif;
/* font-family: 'Source Serif Pro', serif; */
font-size: 1.5em;
2023-02-11 21:43:52 +00:00
background-color: #fcfcfc;
color:#333;
2022-03-10 07:22:29 +00:00
}
/* header */
header {
flex-basis: 100%;
flex-shrink: 0;
2022-07-24 05:55:48 +00:00
background-color: transparent;
clear: both;
padding: 0em;
margin: 0;
2022-07-24 05:55:48 +00:00
border-bottom: 2px solid #eee;
2022-03-10 07:22:29 +00:00
}
header h1 {
margin-left: 0.7em;
2023-02-11 21:43:52 +00:00
color:#333;
2022-03-10 07:22:29 +00:00
}
header a {
/*
color: inherit;
*/
text-decoration: none;
2023-02-11 21:43:52 +00:00
color: #333;
/*
* color: #005386;
*/
2022-03-10 07:22:29 +00:00
}
header h1 span {
margin-left: 0em;
2022-09-28 22:35:58 +00:00
/* font-size: 70%; */
color: #555;
/*
font-style: italic;
*/
}
/* Navigation bar */
header nav {
display: flex;
justify-content: space-between;
2022-03-10 07:22:29 +00:00
}
body>nav {
float: left;
margin: 0 1px 0 0;
2022-07-24 05:55:48 +00:00
border-right: 2px solid #eee;
2022-07-07 16:34:25 +00:00
width: 350px;
}
nav a{
/*
color: inherit;
*/
text-decoration: none;
color: #005386;
}
nav a:hover {
background-color: #ddd;
2022-03-10 07:22:29 +00:00
}
nav ul {
display: flex;
flex-direction: column;
list-style-type: none;
list-style-position: outside;
padding-left: 0;
2022-03-10 07:22:29 +00:00
}
nav li ul {
padding-left: 0.6em;
}
nav li a {
display: block;
margin: 0;
padding: 0.3em 2em 0.8ex 1em;
}
/* Other sections */
article{
padding: 0.3em 0 0 0;
flex-basis: 70%;
padding-left: 1em;
2023-02-11 21:43:52 +00:00
color: #333;
2022-03-10 07:22:29 +00:00
}
footer {
2022-09-28 22:35:58 +00:00
display: block;
2022-07-24 05:55:48 +00:00
flex-grow: 1;
2022-09-28 22:35:58 +00:00
flex-basis: 100%;
flex-shrink: 0;
justify-content: space-between;
padding: 1em 0em 1em 1em;
2022-07-24 05:55:48 +00:00
border-top: 2px solid #eee
}
/* links */
a {
color: #005386;
2022-03-10 07:22:29 +00:00
}
/* Images and figures */
2022-03-15 18:58:38 +00:00
figure figcaption {
display: block;
margin-left: auto;
margin-right: auto;
}
figcaption {
text-align: center;
2022-09-28 22:35:58 +00:00
font-size: 16px;
2022-03-15 18:58:38 +00:00
}
img {
display: block;
margin-left: auto;
margin-right: auto;
width: 80%;
}
.img-frontpage-center {
display: block;
2023-02-11 21:43:52 +00:00
margin-left: auto;
margin-right: auto;
2023-02-11 21:43:52 +00:00
width: 500px;
}
.img-medium-center {
display: block;
margin-left: auto;
margin-right: auto;
width: 50%;
}
2022-07-07 16:34:25 +00:00
/* Block quotes */
blockquote{
width:60%;
margin: 5px auto;
color: #555555;
padding: 1.2em 30px 1.2em 75px;
border-left:8px solid #005386 ;
line-height:1.3;
position: relative;
background: #F0F0F0;
}
blockquote::before{
font-family:Arial;
content: "\201C";
color:#005386;
font-size:4em;
position: absolute;
left: 10px;
top:-10px;
}
/* Code bloocks */
2023-03-08 07:37:40 +00:00
pre {
background-color: #eeeeee;
border: 2px solid;
overflow-x: auto;
}
2023-04-14 22:31:21 +00:00
pre,
code {
display: block;
2023-03-08 07:37:40 +00:00
padding: 0.5em;
}
/*
2022-07-07 16:34:25 +00:00
pre, code {
display: block;
2023-02-11 21:43:52 +00:00
overflow-x:auto;
2022-07-07 16:34:25 +00:00
tab-width: 2;
line-height:1.7;
padding: 0.5em 0.5em 0.5em 0.5em;
margin-top: 1em;
margin-bottom: 1em;
margin: 2em;
2023-02-11 21:43:52 +00:00
max-width: 1100px !important;
2022-07-07 16:34:25 +00:00
background: #F0F0F0;
2023-03-08 07:37:40 +00:00
}*/
/* Lists */
/* this aligns the sitemap */
ul {
margin-left: 15px;
}
li{
list-style-position: outside;
/* list-style-type: '- ' /* ndash, a*/
}
/* Tables */
table {
border-collapse: collapse;
margin-left: auto;
margin-right: auto;
margin-top: 1em;
margin-bottom: 1em;
}
td,
th {
border: 1px solid var(--border);
text-align: left;
padding: 0.5rem;
}
th {
background: var(--accent-bg);
font-weight: bold;
}
/* If the screen size is 600px wide or less, set the font-size of <div> to 30px */
@media screen and (max-width: 1400px) {
body {
display: block;
}
.hidden-mobile {
display: none;
}
2022-09-11 22:20:11 +00:00
article {
flex-basis: 100%;
2022-09-11 22:20:11 +00:00
padding: 5px;
}
header h1 {
margin-left: 0;
}
.img-frontpage-center {
display: block;
margin-left: auto;
margin-right: auto;
2023-02-11 21:43:52 +00:00
width: 300px;
}
}
@media screen and (min-width: 1400px) {
.hide-not-mobile {
display: none;
}
}
2022-10-31 18:18:27 +00:00
/* Newsletter stuff */
.subscribe-button {
2022-10-31 18:18:27 +00:00
background: #0055d4;
padding: 15px 30px;
border-radius: 3px;
border: 0;
cursor: pointer;
text-decoration: none;
color: #ffff;
display: inline-block;
min-width: 150px;
font-size: 20px;
text-align: center;
}
.subscribe-input {
2022-10-31 18:18:27 +00:00
padding: 10px 15px;
border: 1px solid #888;
border-radius: 3px;
width: 33%;
box-shadow: 2px 2px 0 #f3f3f3;
border: 1px solid #ddd;
font-size: 20px;
}
input:focus {
border-color: #0055d4;
}
input:focus::placeholder {
color: transparent;
}
/* Figcaptions for markdown
* Per <https://stackoverflow.com/questions/19331362/using-an-image-caption-in-markdown-jekyll>
*/
img + em {
display: block;
text-align: center;
font-size: 1em;
}
2023-02-11 21:43:52 +00:00
/* Table */
table {
border: 3px solid #005386;
border-collapse: collapse;
table-layout: fixed;
text-align: left;
width: 100%;
}
table thead {
/* position: sticky;
top: 0; */
2023-02-11 21:43:52 +00:00
}
table tbody tr:nth-child(even) {
background: #E9F1F4;
}
table th {
background: #005386;
color: #fcfcfc;
2023-02-11 21:43:52 +00:00
font-weight: bold;
}
table th, table td {
padding: 1em 1em 1em 1em;
/* border: 3px solid #005386; */
}
/* Isso comments */
/* You can see the general comments style: <https://comments.nunosempere.com/css/isso.css> */
.isso-textarea, #isso-postbox-author, #isso-postbox-email, #isso-postbox-website, .isso-post-action > input {
font-size: 20px;
}
2023-02-11 21:43:52 +00:00
2023-04-14 22:31:21 +00:00
.isso-textarea {
height: 15em;
resize: vertical;
}