beopen-code/style.css

828 lines
13 KiB
CSS
Raw Normal View History

2022-05-18 13:44:14 +02:00
@font-face {
font-family: "PecitaBook";
src: url(./Font/Pecita.otf);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
text-decoration: none;
font-weight: normal;
}
2022-05-18 16:48:43 +02:00
/*---------------------------------------------------------------------------*/
/*HOMEPAGE*/
2022-05-25 16:49:35 +02:00
/*text*/
2022-05-18 16:48:43 +02:00
blockquote {
font-family: 'Courier New', Courier, monospace;
font-style: italic;
font-size: 15px;
}
blockquote a {
font-style: normal;
color: #ee6ef1;
margin: 0 0 0 -15px;
}
2022-05-25 16:49:35 +02:00
/*asset*/
2022-05-18 16:48:43 +02:00
img {
max-width: 100%;
height: auto;
}
.container_home {
width: 1160px;
margin: 0 auto;
}
.center {
text-align: center;
}
.divider {
padding: 20px 0;
}
2022-05-25 16:49:35 +02:00
/*button*/
2022-05-18 16:48:43 +02:00
.button {
display: inline-block;
font-size: 25px;
padding: 18px 30px;
border: 2px solid #800d83;
transition: .3s;
color: #fff;
margin: 0 0 50px 0;
border-radius: 15px;
}
.inverse {
color: #222;
}
.button:hover {
background: #800d83;
}
.inverse:hover {
color: #fff;
}
2022-05-25 16:49:35 +02:00
/*main*/
2022-05-18 16:48:43 +02:00
.main {
display: flex;
justify-content: center;
width: 100%;
height: 100vh;
background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(./Img/Index/backgroundHome.jpg) no-repeat center center scroll;
/*Immagine come background*/
2022-05-18 16:48:43 +02:00
background-size: cover;
}
.hero {
display: flex;
justify-content: center;
align-items: center;
/*Verticalmente*/
height: 100vh;
/*Al centro del vh*/
flex-direction: column;
}
.hero h1 {
font-size: 100px;
padding: 15px 0;
color: #ee72f1;
font-weight: bold;
font-family: "PecitaBook";
}
.hero p {
font-size: 30px;
color: #fff;
font-weight: 300;
}
main {
min-height: 768px;
}
/*---------------------------------------------------------------------------*/
/*LISTA ARTICOLI*/
.border {
display: flex;
margin: auto;
border-color: #800d83;
border-style: dashed;
max-width: 100%;
border-width: 3px;
margin: 15px 0 15px 0;
}
.list_article {
2022-05-18 16:48:43 +02:00
width: 85%;
margin: auto;
text-align: left;
line-height: 20px;
}
.list_article p {
2022-05-18 16:48:43 +02:00
color: #a39b8f;
font-size: 16px;
text-align: left;
2022-05-18 17:47:04 +02:00
line-height: 30px;
2022-05-18 16:48:43 +02:00
}
.list_article h2 {
2022-05-18 16:48:43 +02:00
color: #ee6ef1;
line-height: 30px;
}
.list_article .piccihud {
2022-05-18 16:48:43 +02:00
color: #ee6ef1;
}
.list_article .tag {
2022-05-18 16:48:43 +02:00
color: #696969;
margin-bottom: 10px;
2022-05-18 17:47:04 +02:00
font-size: 14px;
2022-05-18 16:48:43 +02:00
}
.read_more {
display: flex;
flex-direction: row;
margin: 10px 10px 0 0;
justify-content: left;
padding: 0;
}
.read_more img {
-webkit-filter: invert(.99);
width: 20px;
height: auto;
margin: 0 0 0 5px;
}
.read_more p {
color: #ee6ef1;
}
.read_more p:hover,
.list_article h2:hover {
2022-05-18 16:48:43 +02:00
color: #fff;
transition: 1s;
}
/*---------------------------------------------------------------------------*/
/*TEMPLATE ARTICOLO*/
2022-05-25 16:49:35 +02:00
/*body e testo*/
2022-05-18 13:44:14 +02:00
body {
background-color: #21202c;
font-family: "Fira Code", "Ubuntu Mono", monospace;
2022-05-18 13:44:14 +02:00
color: #fff;
font-size: 18px;
letter-spacing: -0.32px;
}
h1,
h2,
h3 {
font-weight: bold;
}
.open_title {
2022-05-18 13:44:14 +02:00
font-size: 48px;
margin: 50px 0 20px 0;
line-height: 50px;
text-align: center;
width: 100%;
}
.subtitle {
2022-05-18 13:44:14 +02:00
text-align: left;
margin: 0px 0 30px 0;
}
em {
color: #ee6ef1;
}
a {
color: #fff;
text-decoration: none;
display: inline-block;
padding: 0 15px;
}
.highlightme {
background-color: #7f0d8333;
/*sfondo opaco*/
color: #ee6ef1;
padding: 3px 3px 3px 3px;
font-size: 0.9em;
border-radius: 5px;
}
.dash {
2022-05-18 13:44:14 +02:00
color: #ee6ef1;
}
.spacer {
padding: 10px 0;
}
.max_spacer {
padding: 45px 0
}
/*Creare uno spazio superiore tra i vari contenitori*/
2022-05-25 16:49:35 +02:00
/*logo*/
2022-05-18 13:44:14 +02:00
.title {
display: flex;
justify-content: left;
flex-direction: row;
flex-wrap: wrap;
align-items: baseline;
margin: 20px 0 0 auto;
width: 95%;
}
.title p:hover {
color: #4dafff;
}
.title h2 {
/*margin: 30px 0 -20px 15px;*/
font-size: 60px;
color: #ee72f1;
font-weight: bold;
font-family: "PecitaBook";
margin-right: 20px;
}
2022-05-25 16:49:35 +02:00
/*navbar*/
2022-05-18 13:44:14 +02:00
nav {
width: 80%;
margin: 60px auto;
}
nav ul {
list-style: none;
/*Elimina i pallini*/
display: flex;
justify-content: space-between;
}
nav li {
font-size: 24px;
/*text-transform: uppercase;*/
position: relative;
}
nav li::after {
content: '';
position: absolute;
top: 30px;
left: 0;
width: 0px;
height: 3px;
background: #fff;
transition: .3s;
/*3 decimi*/
}
nav li:hover::after {
width: 100%;
background: #ee6ef1;
}
nav a:hover {
color: #ee6ef1;
}
2022-05-25 16:49:35 +02:00
/*dropdown menù*/
2022-05-18 13:44:14 +02:00
.dropbtn {
display: none;
background-color: transparent;
font-weight: bold;
font-size: 18px;
font-family: "Fira Code", Monaco, Consolas, "Ubuntu Mono", monospace;
color: #fff;
border: 2px solid #800d83;
padding: 5px 10px;
position: relative;
}
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
right: 0;
background-color: #21202c;
min-width: 160px;
color: #fff;
border: 2px solid #fff;
text-align: center;
}
.dropdown-content a {
color: #fff;
padding: 12px 16px;
text-decoration: none;
display: block;
}
.dropdown-content a:hover {
background-color: #181a1b;
}
.dropdown:hover .dropdown-content {
display: block;
}
.dropdown:hover .dropbtn {
background-color: #800d83;
;
}
/*AUTORE E DATA*/
.piccihud {
text-align: right;
width: 100%;
font-size: 15px;
color: #fff;
margin: 10px 0 10px 0;
}
.piccihud p {
display: flex;
justify-content: center;
align-items: center;
/*allinea al centro verticalmente*/
font-family: Arial, Helvetica, sans-serif;
font-weight: lighter;
font-size: 15px;
color: #a39b8f;
}
.piccihud img {
margin: 10px 10px 10px 10px;
width: 20px;
height: auto;
-webkit-filter: invert(.75);
/*Inversione del colore*/
}
2022-05-25 16:49:35 +02:00
/*corpo - articolo*/
2022-05-18 13:44:14 +02:00
.article,
2022-05-18 13:44:14 +02:00
.footer {
width: 60%;
margin: auto;
text-align: left;
line-height: 30px;
}
/*link articolo principale*/
.article a {
color: rgb(255, 196, 0);
padding: 0;
margin: 0;
font-weight: bold;
}
.article a:hover {
color: #69cece;
transition: .2s;
}
.article a:visited {
color: #69cece;
}
2022-06-06 17:14:12 +02:00
/*VIDEO*/
.video {
width: 100%;
height: auto;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
}
2022-06-06 17:36:25 +02:00
.video iframe {
border: none;
}
/*IMMAGINI*/
2022-05-18 13:44:14 +02:00
.container_img {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
/*Gli elementi sono allineati al centro del container*/
2022-05-18 13:44:14 +02:00
margin: 10px 0 10px 0;
}
.container_img img {
max-width: 100%;
height: auto;
}
/*Immagini verticali, in 16/9, come screen da cellulare: visualizzazione a galleria*/
2022-06-06 17:36:25 +02:00
.container_gallery {
width: 100%;
/*del Div in cui è contenuta*/
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
}
.gallery {
width: 250px;
aspect-ratio: 9/16;
border-radius: 10px;
margin: 20px auto;
background-size: cover;
background-position: center;
overflow: hidden;
}
.galleryInfo {
width: 100%;
height: 100%;
background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 80%);
/*Gradiente nere sull'immagine*/
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-end;
/*Posizione del testo*/
opacity: 0;
/*Di default, è nascosto*/
transition: opacity 0.2s ease-in-out;
}
.galleryInfo:hover {
opacity: 1;
}
.galleryInfo:hover .galleryText {
transform: translateY(0px);
/*Effetto di scrolling*/
}
.galleryText {
color: #fff;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-size: 22px;
text-align: center;
font-weight: 600;
width: 100%;
margin: 20% auto;
transition: all 0.2s ease-in-out;
transform: translateY(-20px);
/*Di default sono 20 px più in alto*/
}
/*Immagini di elevate dimensioni. Sarebbe corretto ridimensionarle a monte*/
.max_img {
2022-05-18 13:44:14 +02:00
width: 50%;
height: auto;
}
.author {
text-align: right;
width: 100%;
font-size: 15px;
color: #fff;
margin: 10px 0 10px 0;
}
2022-05-25 16:49:35 +02:00
/*footer*/
2022-05-18 13:44:14 +02:00
.footer {
margin: 15px auto 15px auto;
}
.footer a,
h1 {
color: #4dafff;
}
.footer h2 {
font-weight: bolder;
}
.footer a:hover {
color: #fff;
}
2022-05-25 16:49:35 +02:00
/*sezione privacy*/
2022-05-18 13:44:14 +02:00
.privacy {
display: flex;
justify-content: center;
flex-direction: column;
text-align: center;
color: #ee6ef1;
margin: 15px auto 15px auto;
font-size: 15px;
font-weight: lighter;
}
2022-05-25 16:49:35 +02:00
/*contatti - licenza*/
2022-05-18 13:44:14 +02:00
.container_contacts {
width: 100%;
}
.container_contacts p {
position: absolute;
text-align: left;
margin-top: 20px;
margin-left: 20px;
font-size: 18px;
color: #a39b8f;
}
.contacts {
background-color: #181a1b;
display: flex;
justify-content: space-around;
width: 100%;
padding: 50px 0px 20px 0px;
/*
padding: 25px 50px 75px 100px;
-top padding is 25px
-right padding is 50px
-bottom padding is 75px
-left padding is 100px
*/
line-height: 50px;
vertical-align: middle;
}
.contacts p {
display: flex;
flex-wrap: wrap;
width: 100%;
}
.contacts a {
display: flex;
vertical-align: middle;
text-decoration: none;
color: #fff;
font-weight: lighter;
font-size: 15px;
}
.contacts a:hover {
color: #ee6ef1;
}
.contacts img {
width: 30px;
height: auto;
margin-right: 10px;
}
.license,
.container,
.license a {
background-color: #181a1b;
text-align: center;
padding: 0px 0px 5px 0px;
width: 100%;
font-size: 13px;
color: #a39b8f;
}
2022-05-25 16:49:35 +02:00
/*autore*/
2022-05-18 13:44:14 +02:00
.make {
background-color: black;
padding: 10px;
display: flex;
flex-direction: row;
color: #fff;
font-size: 13px;
font-weight: normal;
align-items: center;
}
.make img:hover {
background-color: red;
border-radius: 5px;
-webkit-filter: none;
}
.make img {
margin: 0 10px 0 10px;
width: 18px;
height: auto;
-webkit-filter: invert(.75);
/*Inversione del colore*/
}
/*---------------------------------------------------------------------------*/
/*MEDIA QUERY - 1080PX*/
@media screen and (max-width: 1080px) {
2022-05-18 17:47:04 +02:00
body {
font-size: 16.5px;
}
2022-05-18 13:44:14 +02:00
/*IMMAGINE CENTRATA - RESPONSIVE*/
.max_img {
2022-05-18 13:44:14 +02:00
width: 80%;
height: auto;
}
.article,
2022-05-18 13:44:14 +02:00
.footer {
width: 80%;
}
2022-05-18 17:41:06 +02:00
/*TITOLO INDEX*/
.hero h1 {
font-size: 80px;
}
.hero p {
font-size: 20px;
}
2022-05-18 13:44:14 +02:00
}
/*MEDIA QUERY - 768PX*/
@media screen and (max-width: 768px) {
/*MENÙ VISIBILE*/
.dropbtn {
display: flex;
}
.menu {
display: none;
}
/*LOGO BEOPEN*/
.title {
justify-content: space-evenly;
margin: 20px 0 0px 0;
width: 100%;
align-items: center;
}
.title p {
display: none;
}
/*NAVBAR*/
nav ul {
justify-content: space-evenly;
margin: 15px 0 -50px 0;
}
nav li {
font-size: 20px;
}
.max_spacer {
padding: 25px 0
}
/*ARTICOLO*/
.open_title {
2022-05-18 13:44:14 +02:00
width: 100%;
font-size: 35px;
}
.subtitle {
2022-05-18 13:44:14 +02:00
font-size: 25px;
}
.article,
2022-05-18 13:44:14 +02:00
.footer,
.privacy {
width: 95%;
}
.gallery {
width: 60%;
}
.galleryText {
font-size: 18px;
}
2022-05-18 13:44:14 +02:00
.privacy {
font-size: 13px;
}
.container_img img {
width: 95%;
height: auto;
margin-top: 20px;
}
.contacts {
display: flex;
justify-content: space-between;
flex-direction: column;
width: 100%;
2022-05-18 13:44:14 +02:00
}
.contacts a {
line-height: 50px;
}
.license {
width: 100%;
font-size: 13px;
}
.make {
justify-content: center;
align-items: center;
width: 100%;
2022-05-18 13:44:14 +02:00
}
}
@media (hover:none) {
/*Quando l'effetto hover non esiste, come sui dispositivi mobile*/
.galleryInfo {
opacity: 1;
}
.galleryText {
transform: translateY(0);
}
}
2022-05-18 13:44:14 +02:00
/*TABELLE*/
.styled-table {
border-collapse: collapse;
margin: 25px 0;
font-size: 0.9em;
min-width: 200px;
}
.styled-table thead tr {
background-color: #800d83;
color: #ffffff;
text-align: left;
}
.styled-table th,
.styled-table td {
padding: 10px 15px;
}
.styled-table tbody tr {
border-bottom: 1px solid #fff;
}
.styled-table tbody tr:nth-of-type(even) {
color: #fff;
}
.styled-table tbody tr:last-of-type {
border-bottom: 2px solid #800d83;
}