personal-website/assets/common/styles.css

373 lines
6.2 KiB
CSS
Raw Normal View History

2023-12-21 13:11:22 +01:00
body {
2023-12-21 17:20:36 +01:00
background-image: url("http://assets.zdenekborovec-dev.cz/common/stones_tile.png");
2023-12-21 13:11:22 +01:00
background-repeat: repeat;
display: flex;
}
main {
/* Constrain the width of the element */
width: 64em;
max-width: 64em;
flex: 1;
/* center the element */
align-self: center;
margin: auto;
2023-12-21 17:20:36 +01:00
background-image: url("http://assets.zdenekborovec-dev.cz/common/planks_light_tile.png");
2023-12-21 13:11:22 +01:00
background-repeat: repeat;
2024-01-19 03:14:06 +01:00
background-color: white;
2023-12-21 13:11:22 +01:00
color: black;
border-radius: 2em;
border-style: outset;
}
article {
padding-left: 1em;
padding-right: 1em;
padding-top: 0.5em;
2024-01-03 12:10:52 +01:00
padding-bottom: 0.5em;
2023-12-21 13:11:22 +01:00
font-family: serif;
}
h1, h2, h3, h4, h5, h6 {
font-family: sans-serif;
}
2024-05-12 23:13:40 +02:00
h2, h3, h4, h5, h6 {
2024-05-05 00:13:28 +02:00
margin-bottom: 8px;
}
2023-12-21 13:11:22 +01:00
hr {
2024-01-03 12:10:52 +01:00
display: block;
margin-top: 0.5em;
margin-bottom: 0.5em;
margin-left: auto;
margin-right: auto;
border-style: dashed;
border-width: 1px;
color: black;
}
table {
2024-04-30 01:35:57 +02:00
border-collapse: collapse;
2024-01-03 12:10:52 +01:00
}
td, th {
2024-04-30 01:35:57 +02:00
border: 1px solid #000000;
text-align: left;
padding: 8px;
2023-12-21 13:11:22 +01:00
}
2024-01-19 03:14:06 +01:00
img {
max-width: 100%;
max-height: 100%;
}
code {
border-style: solid;
border-width: thin;
border-color: black;
border-radius: 0.5em;
background-color: #282828;
color: #33ff00;
padding: 1em;
display: block;
2024-01-19 04:17:10 +01:00
white-space: pre;
2024-01-19 03:14:06 +01:00
}
2024-05-05 00:13:28 +02:00
ul {
margin: 0px;
}
2024-01-19 03:38:05 +01:00
#header {
border-bottom: double;
}
#header h1{
padding-left: 1em;
padding-right: 1em;
}
#header ul {
background-color: #202020;
background-image: url("http://assets.zdenekborovec-dev.cz/common/planks_dark_tile.png");
background-repeat: repeat;
padding: 0;
text-align: center;
display: flex;
list-style-type: none;
}
#header ul li {
float: left;
position: relative;
flex-grow: 1;
border-style: solid;
border-width: thin;
border-color: black;
}
#header ul li a {
color: white;
text-decoration: none;
font-family: sans-serif;
font-weight: bold;
display: block;
}
2024-05-05 21:51:21 +02:00
#header table {
width: 100%;
}
2024-01-19 03:38:05 +01:00
#footer {
border-top: double;
2024-01-19 03:48:08 +01:00
padding: 1em;
2024-01-19 03:38:05 +01:00
}
2024-06-16 16:13:27 +02:00
.quote {
text-align: center;
font-style: italic;
}
.quote-author {
text-align: right;
}
2024-04-30 01:35:57 +02:00
.noborder-table td, .noborder-table th {
border: none;
}
2024-04-27 21:32:25 +02:00
.image-container-right {
2023-12-21 13:11:22 +01:00
border-style: solid;
border-width: thin;
border-color: black;
border-radius: 0.5em;
float: right;
2023-12-21 17:20:36 +01:00
background-image: url("http://assets.zdenekborovec-dev.cz/common/planks_dark_tile.png");
2023-12-21 13:11:22 +01:00
background-repeat: repeat;
2024-01-19 03:14:06 +01:00
background-color: black;
2023-12-21 13:11:22 +01:00
color: white;
padding: 1em;
2024-04-27 21:32:25 +02:00
margin-left: 1em;
}
2024-06-23 07:43:34 +02:00
.image-container-left {
2024-04-27 21:32:25 +02:00
border-style: solid;
border-width: thin;
border-color: black;
border-radius: 0.5em;
2024-06-23 07:43:34 +02:00
float: left;
2024-04-27 21:32:25 +02:00
background-image: url("http://assets.zdenekborovec-dev.cz/common/planks_dark_tile.png");
background-repeat: repeat;
background-color: black;
color: white;
padding: 1em;
2024-06-23 07:43:34 +02:00
margin-right: 1em;
2023-12-21 13:11:22 +01:00
}
2024-06-23 01:09:58 +02:00
.image-container-center {
border-style: solid;
border-width: thin;
border-color: black;
border-radius: 0.5em;
background-image: url("http://assets.zdenekborovec-dev.cz/common/planks_dark_tile.png");
background-repeat: repeat;
background-color: black;
color: white;
padding: 1em;
margin: 0 auto;
display: flex;
}
2024-04-27 21:32:25 +02:00
.image-container-left img, .image-container-right img {
2023-12-21 13:11:22 +01:00
border-radius: 0.5em;
border-style: solid;
border-width: thin;
border-color: black;
}
2024-06-23 07:43:34 +02:00
.image-container-center img, .image-gallery img {
2024-06-23 01:09:58 +02:00
border-radius: 0.5em;
border-style: solid;
border-width: thin;
border-color: black;
margin-right: 1em;
}
.image-container-left p, .image-container-right p, .image-container-center p {
2023-12-21 13:11:22 +01:00
font-style: italic;
margin-bottom: 0;
}
2024-01-03 12:10:52 +01:00
2024-01-19 03:14:06 +01:00
.image-gallery {
border-style: solid;
border-width: thin;
border-color: black;
border-radius: 0.5em;
background-image: url("http://assets.zdenekborovec-dev.cz/common/planks_dark_tile.png");
background-repeat: repeat;
background-color: black;
color: white;
padding: 1em;
2024-06-23 07:52:14 +02:00
}
.image-gallery h2 {
margin-top: 0px;
2024-01-19 03:14:06 +01:00
}
.image-gallery div {
display: flex;
flex-flow: row wrap;
justify-content: flex-start;
align-items: flex-start;
columns: 16em;
gap: 1em;
}
.image-gallery div div {
border-style: solid;
border-width: thin;
border-color: black;
border-radius: 0.5em;
background-image: url("http://assets.zdenekborovec-dev.cz/common/planks_light_tile.png");
background-repeat: repeat;
background-color: white;
color: black;
padding: 1em;
max-height: 100%;
display: block;
}
.image-gallery div div img {
border-radius: 0.5em;
border-style: solid;
border-width: thin;
border-color: black;
object-fit: contain;
}
.image-gallery div div p {
font-style: italic;
margin-bottom: 0;
}
2024-04-30 01:35:57 +02:00
.centered-container {
width: 100%;
display: flex;
justify-content: center;
}
2024-01-03 12:10:52 +01:00
.frac {
display: inline-block;
position: relative;
vertical-align: middle;
letter-spacing: 0.001em;
text-align: center;
}
2024-01-19 04:17:10 +01:00
2024-01-19 03:14:06 +01:00
.frac span {
2024-01-03 12:10:52 +01:00
display: block;
padding: 0.1em;
}
2024-01-19 04:17:10 +01:00
2024-01-03 12:10:52 +01:00
.frac span.bottom {
border-top: thin solid black;
}
2024-01-19 04:17:10 +01:00
2024-01-03 12:10:52 +01:00
.frac span.symbol {
display: none;
}
2024-01-19 03:14:06 +01:00
2024-01-19 04:17:10 +01:00
.blog-preview-list {
list-style-type:none;
padding-left: 0px;
}
.blog-preview {
border-radius: 0.5em;
border-style: solid;
border-width: thin;
border-color: black;
margin: 1em;
padding-left: 1em;
padding-right: 1em;
}
2024-05-12 23:13:40 +02:00
.blog-tag {
2024-01-19 03:14:06 +01:00
border-style: solid;
border-width: thin;
border-color: black;
border-radius: 0.5em;
padding: 0.2em;
2024-05-12 23:13:40 +02:00
display: inline-block;
2024-01-19 03:14:06 +01:00
}
2024-05-13 00:03:56 +02:00
.blog-tags {
padding: 0px;
}
2024-05-12 23:13:40 +02:00
.blog-publish-date {
2024-05-13 00:03:56 +02:00
display: inline-block;
text-align: right;
padding: 0px;
width: 100%;
2024-01-19 03:14:06 +01:00
}
2024-04-29 01:30:46 +02:00
.comment .comment {
margin-left: 0.5em;
}
2024-04-30 02:38:50 +02:00
.comment-own-wrapper{
2024-04-29 01:30:46 +02:00
background-image: url("http://assets.zdenekborovec-dev.cz/common/planks_dark_tile.png");
background-repeat: repeat;
background-color: black;
color: white;
2024-04-30 01:35:57 +02:00
border-bottom: 1px solid black;
2024-04-29 01:30:46 +02:00
}
2024-04-30 02:38:50 +02:00
.comment-child-wrapper{
2024-04-29 01:30:46 +02:00
border-left: 1px solid black;
}
2024-04-30 02:38:50 +02:00
.comment-box {
2024-04-30 01:35:57 +02:00
width: 100%;
2024-04-30 02:38:50 +02:00
height: 5em;
2024-04-30 01:35:57 +02:00
}
2024-05-04 23:02:24 +02:00
.comment-content {
margin: 0.5em;
}
2024-04-30 02:38:50 +02:00
.comment-author {
margin: 0.5em;
2024-05-04 23:02:24 +02:00
max-width: 100%;
2024-04-30 02:38:50 +02:00
display: inline-block;
2024-04-30 01:35:57 +02:00
}
2024-04-30 02:38:50 +02:00
.comment-date {
margin: 0.5em;
display: inline-block;
2024-04-30 01:35:57 +02:00
}
2024-04-30 02:38:50 +02:00
.checkbox-button {
margin: 0.5em;
display: inline-block;
background-image: url("http://assets.zdenekborovec-dev.cz/common/planks_light_tile.png");
background-repeat: repeat;
background-color: white;
color: black;
border: 1px solid black;
cursor: pointer;
2024-04-30 01:35:57 +02:00
}
2024-04-30 02:38:50 +02:00
input[type=checkbox]:checked ~ .comment-response{
display: block;
2024-04-30 01:35:57 +02:00
}
2024-04-30 02:38:50 +02:00
.comment-response {
display: none;
border-top: double black;
2024-05-04 23:02:24 +02:00
padding: 0.5em;
2024-04-29 01:30:46 +02:00
}