tapestry-code/source/css/style.css
2026-03-27 16:47:50 +01:00

299 lines
4.6 KiB
CSS

body {
font-family: "Helvetica";
margin: auto;
font-size: 14px;
background-color: #343a40;
}
main{
padding: 20px;
}
h1, h2, h3, h4 {
font-weight: lighter;
}
h1, h2 {
text-align: center;
}
a {
text-decoration: none;
transition: color 1s;
}
/* Definition of small fonted text, example: footer */
.smoll {
font-size: 12px !important;
line-height: 12px;
}
/* Sidebar header section */
.sidebar {
margin-right: 1em;
margin-bottom: 0;
flex-shrink: 0;
}
.avatar img {
border-radius: 100%;
width: 50%;
margin: 15px auto;
position: relative;
z-index: 2;
}
/* Sidebar content section */
.sidebar-content {
padding: 1em;
margin-top: 35px;
background-color: #dcdcdf;
color:#343a40;
border-radius: 10px;
}
.sidebar-content p {
line-height: 17px;
font-size: 15px;
}
.social {
justify-content: center;
margin-top: 0.5em;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
}
.social-icon a {
padding: 5px;
box-sizing: border-box;
display:inline-block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font-size: 14px;
transition: color 0.3s;
}
.social-icon img {
width: 15px !important;
height: 15px !important;
border-radius: 50%;
}
/* Sidebar menu section */
nav a {
margin: 0.75rem auto;
padding: 0.25rem 0;
display: block;
background-color: #343a40;
color: #dcdcdf !important;
width: 75%;
height: 25px;
text-align: center;
line-height: 25px;
border-radius: 50px;
transition: color 0.3s;
}
/* Footer under the sidebar */
.footer {
color: #dcdcdf !important;
text-align: center;
margin-top: 5px;
}
.footer a {
color: #dcdcdf !important;
}
/* Flags */
.border{
border-radius: 10px;
}
/* Posts and pages */
.post-feed{
padding: 1em calc(1em + 10%);
margin: 0 auto 1em;
width: 60%;
align-items: center;
color: #dcdcdf;
background-color: #2e3237;
}
.post-feed h1{
color:#dcdcdf !important;
}
.pp{
padding: 1em calc(1em + 10%);
box-sizing: border-box;
}
.pp h1{
padding: 1em 0;
}
.post{
background-color: #dcdcdf;
}
.page{
color: #dcdcdf !important;
}
.page-divider {
margin-top: 1em;
border-top: 1px solid #343a40;
}
/* Images */
img {
max-width: 100%;
height: auto;
display: block;
opacity: 1;
transition: all 1s;
}
img:hover {
opacity: 0.95;
}
iframe {
width: 100%;
height: auto;
aspect-ratio: 16 / 9;
}
/* Date */
.date {
display: flex;
}
.date a{
font-style: italic;
margin-left: auto;
text-align: right !important;
}
.post .date a{
color: #343a40 !important;
}
.post-feed .date a {
margin-top:1em;
color: #9fa5aa !important;
}
@media (max-width: 768px) {
.sidebar-content {
display: none;
}
.post_description {
display: none;
}
.footer {
display: none;
}
.content {
width: calc(100% - 1em);
}
}
/* Medium devices (tablets, 576px-768px) */
@media (min-width: 577px) and (max-width: 768px) {
body{
width: 576px;
}
}
@media (min-width: 769px) {
.sidebar {
width: 250px;
height: auto;
position: fixed;
z-index: 1;
}
.content {
width: calc(100% - 250px - 1em);
margin-left: calc(250px + 1em);
}
}
/* Large devices (desktops, 768px-992px) */
@media (min-width: 769px) and (max-width: 992px) {
body{
width: 769px;
}
}
@media (min-width: 993px) and (max-width: 1199px) {
body{
width: 993px;
}
}
@media (min-width: 1200px) {
body{
width: 1200px;
}
}
/* Post - Tags */
.tags {
text-align: right;
margin-bottom: 0em;
}
/* Scarves section */
.scarves {
position:fixed;
right: 0;
margin-right:50px;
z-index: 10;
}
.scarf {
width:25px;
height:100px;
position:absolute;
transition: all 1s, transform 1s;
-moz-transition: all 1s, -moz-transform 1s;
-webkit-transition: all 1s, -webkit-transform 1s;
-o-transition: all 1s, -o-transform 1s;
opacity:1;
}
.scarf .logo {
width:21px;
bottom: 0px;
font-size: 15px;
text-align: center;
padding: 5px 2px;
position: absolute;
object-fit: cover;
}
.scarf:hover {
margin-top:-25px !important;
transition: all 1s, transform 1s;
-moz-transition: all 1s, -moz-transform 1s;
-webkit-transition: all 1s, -webkit-transform 1s;
-o-transition: all 1s, -o-transform 1s;
opacity:0.9;
}
.scarf:hover img {
opacity: 0.75;
transition: opacity 1s;
}