www-template/styles.css

668 lines
14 KiB
CSS
Raw Normal View History

2022-04-06 19:09:42 +02:00
/*
========================================================================
Description : CSS stylesheet
2022-04-06 19:49:03 +02:00
Author : echolib & neox
2022-04-06 19:09:42 +02:00
Website : https://a-lec.org
2022-04-06 19:49:03 +02:00
License : AGPL
2022-04-06 19:09:42 +02:00
========================================================================
*/
/*
========================================================================
ROOT VARIABLES DOCUMENT
========================================================================
*/
:root {
--a-lec_blue: #00bdff;
--a-lec_red: #b11107;
--a-lec_yellow: #ecb41a;
--a-lec_black: #2d3842;
--a-lec_white: #fefff9;
}
/*
========================================================================
Reset all:
- Inherited properties to inherit value
- Non-inherited properties to initial value
========================================================================
*/
* {
all: unset;
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
-moz-box-sizing: border-box; /* Firefox, other Gecko */
box-sizing: border-box; /* Opera/IE 8+ */
text-decoration: none;
}
/*
========================================================================
Foundations
========================================================================
*/
title {
display: none;
}
2022-04-15 12:45:55 +02:00
head {
display: none;
}
style {
display:none;
}
2022-04-06 19:09:42 +02:00
body {
color: var(--a-lec_black);
background: var(--a-lec_white);
font-family: sans-serif;
font-size: 100%;
text-align: justify;
text-justify: auto;
background: var(--a-lec_white);
}
section#a-lec_page-wrapper {
display: flex;
margin: 0 25px;
}
article,
aside {
margin: 7px;
background-color: var(--a-lec_white);
background-repeat: repeat;
padding: 10px;
2022-04-15 15:46:08 +02:00
min-height: 62vh;
2022-04-06 19:09:42 +02:00
}
article {
flex-basis: 70%;
}
aside {
margin: 10px;
flex-basis: 30%;
}
/*
========================================================================
HEADER / BANNER
========================================================================
*/
header {
2022-04-15 12:45:55 +02:00
background: #2d4b63; /* old IE fallback */
2022-04-06 19:09:42 +02:00
2022-04-15 12:45:55 +02:00
background-attachment: fixed;
2022-04-30 18:31:37 +02:00
background-image: url(../templates/electronic.jpg);
2022-04-15 12:45:55 +02:00
background-position: 0 0;
background-repeat: cover;
background-size: auto;
2022-04-06 19:09:42 +02:00
}
#a-lec_banner,
#a-lec_footer {
display: flex;
2022-04-15 12:45:55 +02:00
height: auto;
width: auto;
2022-04-06 19:09:42 +02:00
padding: 20px 25px;
}
#a-lec_site-logo img {
display: flex;
flex-direction: column;
align-items: start;
width: 160px;
height: 160px;
place-content: baseline center;
}
#a-lec_site-logo a {
background-color: unset;
2022-04-11 10:30:20 +02:00
place-content: baseline center;
2022-04-06 19:09:42 +02:00
}
2022-06-26 12:03:41 +02:00
#a-lec_site-title {
2022-04-06 19:09:42 +02:00
display: flex;
flex-direction: column;
2022-04-15 12:45:55 +02:00
align-items: center;
2022-04-06 19:09:42 +02:00
place-content: baseline center;
2022-06-26 12:03:41 +02:00
padding-left: 50px;
2022-04-06 19:09:42 +02:00
}
2022-06-26 12:03:41 +02:00
#a-lec_site-title h2 {
2022-04-06 19:09:42 +02:00
font-weight: normal;
color: #FFF;
font-size: 130%;
2022-04-15 12:45:55 +02:00
margin-top: 15px;
2022-04-06 19:09:42 +02:00
}
#a-lec_site-name a {
color: #FFF;
font-weight: bold;
2022-04-11 10:30:20 +02:00
font-size: 300%;
2022-04-06 19:09:42 +02:00
}
#a-lec_site-name a:hover {
background-color: unset;
2022-04-11 10:30:20 +02:00
font-weight: bold;
font-size: 300%;
2022-04-15 12:45:55 +02:00
background-color: unset;
2022-04-06 19:09:42 +02:00
}
2022-04-11 10:30:20 +02:00
2022-04-06 19:09:42 +02:00
/*
========================================================================
FOOTER
========================================================================
*/
footer {
2022-06-26 12:03:41 +02:00
background: #2d4b63; /* old IE fallback */
2022-04-30 18:31:37 +02:00
background-image: url(../templates/electronic.jpg);
2022-04-15 12:45:55 +02:00
background-position: 0 0;
background-repeat: cover;
background-size: auto;
2022-04-06 19:09:42 +02:00
}
#a-lec_footer h1 {
font-size: 130%;
color: #FFF;
font-weight: bold;
2022-04-15 12:45:55 +02:00
margin-top: 0px;
margin-left: 0px;
2022-04-06 19:09:42 +02:00
}
#a-lec_footer {
color: #FFF;
height: 100%;
}
#a-lec_footer a {
color: var(--a-lec_yellow);
}
#a-lec_footer a:hover {
color: #000;
}
#a-lec_footer b {
color: var(--a-lec_blue);
}
div#a-lec_copyright {
font-size: 90%;
2022-04-15 12:45:55 +02:00
flex-basis: 30%;
margin-left: -100px;
text-align: right;
2022-04-06 19:09:42 +02:00
}
div#a-lec_infos {
2022-04-15 12:45:55 +02:00
flex-basis: 70%;
font-size: 100%;
margin: 0px 110px 0px 0px;
2022-04-06 19:09:42 +02:00
}
2022-06-26 12:03:41 +02:00
2022-04-06 19:09:42 +02:00
.a-lec_list-cr {
display: block;
margin: 0 0 5px 25px;
}
2022-04-06 23:57:28 +02:00
/*
========================================================================
SIDEBAR
========================================================================
*/
2022-04-15 12:45:55 +02:00
aside#a-lec_sidebar {
padding-left: 40px;
2022-07-08 15:34:05 +02:00
margin-top: 30px;
2022-04-15 12:45:55 +02:00
}
2022-06-26 12:03:41 +02:00
.a-lec_list-post-item a:hover {
color: unset;
background-color: unset;
2022-04-07 11:10:20 +02:00
}
2022-04-06 23:57:28 +02:00
.a-lec_list-post-title {
display: block;
padding: 15px;
2022-04-07 11:05:32 +02:00
background-color: var(--a-lec_yellow);
2022-04-07 00:52:43 +02:00
color: var(--a-lec_white);
2022-04-06 23:57:28 +02:00
font-weight: bold;
padding: 10px;
2022-07-08 15:34:05 +02:00
margin: -10px 0px 0px 0px;
2022-04-06 23:57:28 +02:00
}
.a-lec_list-post-metas {
display: block;
padding: 15px;
2022-04-07 00:01:39 +02:00
background-color: #FDF1B8;
2022-04-07 00:52:43 +02:00
color: var(--a-lec_red);;
2022-04-06 23:57:28 +02:00
font-size: 80%;
padding: 10px;
font-weight: bold;
2022-07-08 15:37:05 +02:00
margin-bottom: -10px;
2022-07-08 15:41:09 +02:00
text-transform: capitalize;
2022-07-08 15:34:05 +02:00
2022-04-06 23:57:28 +02:00
}
2022-06-26 12:03:41 +02:00
.a-lec_list-post-item a .a-lec_list-post-info {
2022-04-06 23:57:28 +02:00
display: block;
2022-04-15 15:18:09 +02:00
background-color: #FDF1B8;
2022-06-26 12:03:41 +02:00
color: var(--a-lec_black);
2022-04-15 15:18:09 +02:00
font-size: 80%;
padding: 10px;
2022-04-06 23:57:28 +02:00
font-weight: normal;
2022-07-08 15:37:05 +02:00
margin-top: -10px;
2022-04-11 13:18:57 +02:00
}
2022-04-06 19:09:42 +02:00
/*
========================================================================
ARTICLE
========================================================================
*/
/*
* Sticky Author Date
*/
#a-lec_metas {
2022-04-15 12:45:55 +02:00
display: block;
2022-04-06 19:09:42 +02:00
background-color: var(--a-lec_yellow);
2022-04-15 12:45:55 +02:00
position: relative;
text-align: left;
float: right;
top: -10px;
padding: 5px;
font-size: 82%;
2022-04-06 19:09:42 +02:00
}
/*
* Basic texts
*/
strong {
color: #454545;
font-weight: bold;
}
b {
color: #676767;
font-weight: bold;
}
i {
font-style: italic;
}
abbr {
text-transform: uppercase;
}
/*
* Lists
*/
.a-lec_post-content li {
padding: 3px 0;
}
2022-06-26 12:03:41 +02:00
.a-lec_li-1 {
2022-04-06 19:09:42 +02:00
display: block;
}
2022-06-26 12:03:41 +02:00
.a-lec_li-2 {
2022-04-06 19:09:42 +02:00
display: block;
margin-left: 20px;
}
2022-06-26 12:03:41 +02:00
.a-lec_li-3 {
2022-04-06 19:09:42 +02:00
display: block;
margin-left: 40px;
}
2022-04-15 12:45:55 +02:00
.a-lec_list-ol li {
counter-increment: step-counter;
}
2022-06-26 12:03:41 +02:00
.a-lec_list-ol .a-lec_li-1::before,
.a-lec_list-ol .a-lec_li-2::before,
.a-lec_list-ol .a-lec_li-3::before {
2022-04-15 12:45:55 +02:00
display: inline-block;
content: counter(step-counter) ".";
padding-left: 0px;
margin-right: 5px;
list-style-type: upper-roman;
}
2022-06-26 12:03:41 +02:00
.a-lec_list-ol .a-lec_li-1::before {
2022-04-15 12:45:55 +02:00
color: var(--a-lec_red);
}
2022-06-26 12:03:41 +02:00
.a-lec_list-ol .a-lec_li-2::before {
2022-04-15 12:45:55 +02:00
color: var(--a-lec_blue);
}
2022-06-26 12:03:41 +02:00
.a-lec_list-ol .a-lec_li-3::before {
2022-04-15 12:45:55 +02:00
color: var(--a-lec_yellow);
}
2022-06-26 12:03:41 +02:00
.a-lec_list-ul .a-lec_li-1::before,
.a-lec_list-ul .a-lec_li-2::before,
.a-lec_list-ul .a-lec_li-3::before {
2022-04-06 19:09:42 +02:00
display: inline-block;
content: "\2022";
width: 10px;
2022-04-15 12:45:55 +02:00
padding-left: 5px;
2022-04-06 19:09:42 +02:00
margin-right: 5px;
font-weight: bold;
}
2022-06-26 12:03:41 +02:00
.a-lec_list-ul .a-lec_li-1::before {
2022-04-06 19:09:42 +02:00
color: var(--a-lec_red);
}
2022-06-26 12:03:41 +02:00
.a-lec_list-ul .a-lec_li-2::before {
2022-04-06 19:09:42 +02:00
color: var(--a-lec_blue);
}
2022-06-26 12:03:41 +02:00
.a-lec_list-ul .a-lec_li-3::before {
2022-04-06 19:09:42 +02:00
color: var(--a-lec_yellow);
}
/*
* Blockquotes
*/
2022-06-26 12:15:47 +02:00
.a-lec_quote-fig {
2022-04-06 19:09:42 +02:00
display: block;
font-style: italic;
2022-06-26 12:15:47 +02:00
margin: 40px 20px 20px 20px;
2022-04-07 11:02:50 +02:00
color: var(--a-lec_black);
2022-04-06 19:09:42 +02:00
}
2022-06-26 12:15:47 +02:00
.a-lec_quote-fig p::before {
2022-04-06 19:09:42 +02:00
color: var(--a-lec_blue);
content: "“";
font-size: 3rem;
2022-04-07 11:02:50 +02:00
margin-left: -30px;
margin-bottom: -30px;
display: block;
2022-04-06 19:09:42 +02:00
}
2022-06-26 12:15:47 +02:00
.a-lec_quote-fig p::after {
2022-04-06 19:09:42 +02:00
color: var(--a-lec_blue);
content: "„";
font-size: 3rem;
2022-06-26 12:15:47 +02:00
margin-right: -30px;
2022-04-07 11:02:50 +02:00
margin-top: -35px;
display: block;
text-align: right;
}
2022-04-06 19:09:42 +02:00
2022-06-26 12:15:47 +02:00
.a-lec_quote-fig a {
2022-05-01 13:37:04 +02:00
display: inline-block;
2022-06-26 12:15:47 +02:00
float: right;
2022-04-06 19:09:42 +02:00
background-color: var(--a-lec_yellow);
padding: 4px;
2022-04-07 11:02:50 +02:00
color: var(--a-lec_black);
2022-06-26 12:15:47 +02:00
margin-top: 10px;
margin-right: -20px;
2022-04-06 19:09:42 +02:00
}
2022-06-26 12:15:47 +02:00
.a-lec_quote-fig a:hover {
2022-04-06 19:09:42 +02:00
padding: 4px;
}
/*
* Block-Codes
*/
.a-lec_block-code {
display: block;
padding: 15px;
margin: 10px 30px 15px 10px;
background-color: #000;
color: #fff;
font-size: 88%;
padding: 10px;
margin: 30px 30px 30px 10px;
border: 3px solid var(--a-lec_blue);
border-radius: 10px;
}
/*
* Inline-Codes
*/
.a-lec_inline-code {
display: inline-block;
background-color: #000;
padding: 0 5px;
font-size: 89%;
color: #fff;
}
/*
* Links
*/
a {
color: var(--a-lec_red);
padding: 0 2px;
font-weight: bold;
-webkit-transition: all 0.25s ease-out;
-moz-transition: all 0.25s ease-out;
transition: all 0.25s ease-out;
}
a:hover {
padding: 0 2px;
background-color: var(--a-lec_blue);
color: #000;
cursor: pointer;
}
a:active {
2022-07-08 15:24:42 +02:00
text-decoration: none;
2022-04-06 19:09:42 +02:00
cursor: progress;
}
a.a-lec_file-link {
background-color: #FFF;
}
a.a-lec_file-link:hover {
background-color: var(--a-lec_yellow);
color: #000;
cursor: pointer;
}
/*
* Paragraphs
*/
2022-06-26 12:03:41 +02:00
p.a-lec_p{
2022-04-06 19:09:42 +02:00
display: block;
2022-04-07 00:06:30 +02:00
margin-top: 10px;
margin-bottom: 10px;
2022-04-06 19:09:42 +02:00
}
2022-06-26 12:03:41 +02:00
div.a-lec_content{
2022-04-06 19:09:42 +02:00
display: block;
}
2022-06-26 12:03:41 +02:00
p {
line-height: 26px;
2022-04-06 19:09:42 +02:00
}
2022-06-26 12:03:41 +02:00
article ul {
line-height: 24px;
2022-04-15 12:45:55 +02:00
}
/*
A-lec images
*/
2022-06-26 12:03:41 +02:00
.a-lec_image{
2022-04-15 12:45:55 +02:00
display: inline-block;
vertical-align: middle;
max-width: 100%;
height: auto;
2022-04-06 19:09:42 +02:00
}
/*
========================================================================
HEADINGS
========================================================================
*/
2022-06-26 12:03:41 +02:00
.a-lec_title, #a-lec_site-name {
2022-04-30 15:28:51 +02:00
display: block;
2022-04-06 19:09:42 +02:00
color: #000;
font-weight: bold;
}
2022-06-26 12:03:41 +02:00
.a-lec_title-1 {
font-size: 150%;
margin-top: 30px;
margin-bottom: 10px;
}
.a-lec_title-2 {
font-size: 130%;
margin-top: 30px;
margin-bottom: 15px;
color: #454545;
}
.a-lec_title-3 {
font-size: 110%;
margin-top: 30px;
margin-bottom: 15px;
color: #505050;
}
.a-lec_title-4 {
font-size: 100%;
color: #606060;
}
.a-lec_title-5 {
font-size: 100%;
color: #707070;
}
.a-lec_title-6 {
font-size: 100%;
color: #808080;
}
2022-04-06 23:57:28 +02:00
2022-04-07 13:16:09 +02:00
/*
========================================================================
LITTLE SCREENS
========================================================================
*/
@media screen and (max-width: 700px) {
section#a-lec_page-wrapper {
display: block;
2022-04-15 12:45:55 +02:00
margin: 10px 25px;
2022-04-07 13:16:09 +02:00
}
aside#a-lec_sidebar {
background: none;
2022-04-15 12:45:55 +02:00
padding-left: 40px;
2022-04-07 13:16:09 +02:00
}
.a-lec_latest-posts {
margin-left: -35px;
}
div#a-lec_metas {
2022-04-15 12:45:55 +02:00
margin: 0px -10px 0px 0px;
}
article {
margin-top: 20px;
2022-04-07 13:16:09 +02:00
}
article#a-lec_index {
2022-04-15 12:45:55 +02:00
margin-top: -10px;
2022-04-07 13:16:09 +02:00
}
#a-lec_footer {
display: block;
padding: 5px;
}
#a-lec_footer .a-lec_paragraph{
margin-bottom: 30px;
2022-04-15 12:45:55 +02:00
font-size: 90%;
2022-04-07 13:16:09 +02:00
border: 2px solid var(--a-lec_blue);
border-top : unset;
border-left: unset;
border-right: unset;
padding: 15px;
}
#a-lec_footer h1 {
margin-top: 10px;
font-size: 115%;
padding: 15px;
margin-bottom: -20px;
2022-04-15 12:45:55 +02:00
font-size: 120%
2022-04-07 13:16:09 +02:00
}
#a-lec_footer li {
text-align: center;
}
#a-lec_banner,
#a-lec_footer {
display: block;
}
#a-lec_site-logo img {
all: unset;
display: inline-block;
width: 100%;
2022-04-30 15:28:51 +02:00
height: 12vh;
2022-04-07 13:16:09 +02:00
}
#a-lec_site-name a {
margin-top: -30px;
margin-bottom: -20px;
position: relative;
float: left;
2022-04-07 13:22:45 +02:00
font-size: 3rem;
padding-left: 0px;
2022-04-07 13:16:09 +02:00
}
2022-04-15 12:45:55 +02:00
#chalec_site-titles h2 {
font-weight: normal;
color: var(--chalec_white);
font-size: 130%;
margin-top: 15px;
margin-bottom: 5px;
}
2022-04-07 13:16:09 +02:00
#a-lec_site-name a:hover {
float: left;
font-size: 3rem;
}
#a-lec_site-description {
all: unset;
margin-top: 15px;
position: relative;
float: left;
font-size: 1rem;
text-align: center;
}
2022-04-30 15:28:51 +02:00
p {
line-height: 28px;
}
2022-04-07 13:16:09 +02:00
}