beopen-code/Site - Html & Css/style.css

885 lines
14 KiB
CSS

@font-face {
font-family: "PecitaBook";
src: url(./Font/Pecita.otf);
}
@font-face {
font-family: 'ubuntu_monobold';
src: url('./Font/ubuntumono-b-webfont.woff2') format('woff2'),
url('./Font/ubuntumono-b-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'ubuntu_monobold_italic';
src: url('./Font/ubuntumono-bi-webfont.woff2') format('woff2'),
url('./Font/ubuntumono-bi-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'ubuntu_monoregular';
src: url('./Font/ubuntumono-r-webfont.woff2') format('woff2'),
url('./Font/ubuntumono-r-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'ubuntu_monoitalic';
src: url('./Font/ubuntumono-ri-webfont.woff2') format('woff2'),
url('./Font/ubuntumono-ri-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
text-decoration: none;
font-weight: normal;
}
/*---------------------------------------------------------------------------*/
/*HOMEPAGE*/
/*text*/
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;
}
/*asset*/
img {
max-width: 100%;
height: auto;
}
.container_home {
width: 1160px;
margin: 0 auto;
}
.center {
text-align: center;
}
.divider {
padding: 20px 0;
}
/*button*/
.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;
}
/*main*/
.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*/
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 {
width: 85%;
margin: auto;
text-align: left;
line-height: 20px;
}
.list_article p {
color: #a39b8f;
font-size: 16px;
text-align: left;
line-height: 30px;
}
.list_article h2 {
color: #ee6ef1;
line-height: 30px;
}
.list_article .piccihud {
color: #ee6ef1;
}
.list_article .tag {
color: #696969;
margin-bottom: 10px;
font-size: 14px;
}
.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 {
color: #fff;
transition: 1s;
}
/*---------------------------------------------------------------------------*/
/*TEMPLATE ARTICOLO*/
/*body e testo*/
body {
background-color: #21202c;
font-family: "ubuntu_monoregular", "Fira Code", "Ubuntu Mono", monospace;
color: #fff;
font-size: 18px;
letter-spacing: -0.32px;
}
h1,
h2,
h3 {
font-weight: bold;
}
.open_title {
font-size: 48px;
margin: 50px 0 20px 0;
line-height: 50px;
text-align: center;
width: 100%;
}
.subtitle {
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 {
color: #ee6ef1;
}
.spacer {
padding: 10px 0;
}
.max_spacer {
padding: 45px 0
}
/*Creare uno spazio superiore tra i vari contenitori*/
/*logo*/
.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 a {
/*margin: 30px 0 -20px 15px;*/
font-size: 60px;
color: #ee72f1;
font-weight: bold;
font-family: "PecitaBook";
margin-right: 20px;
}
/*navbar*/
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;
}
/*dropdown menù*/
.dropbtn {
display: none;
background-color: transparent;
font-weight: bold;
font-size: 18px;
font-family: "ubuntu_monoregular", "Fira Code", "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*/
}
/*corpo - articolo*/
.article,
.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;
}
/*VIDEO*/
.video {
width: 100%;
height: auto;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
}
.video iframe {
border: none;
}
/*IMMAGINI*/
.container_img {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
/*Gli elementi sono allineati al centro del container*/
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*/
.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: 'ubuntu_monoregular', 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 {
width: 50%;
height: auto;
}
.author {
text-align: right;
width: 100%;
font-size: 15px;
color: #fff;
margin: 10px 0 10px 0;
}
/*footer*/
.footer {
margin: 15px auto 15px auto;
}
.footer a,
h1 {
color: #4dafff;
}
.footer h2 {
font-weight: bolder;
}
.footer a:hover {
color: #fff;
}
.go_up {
width: 95%;
margin: auto;
display: flex;
justify-content: right;
align-items: center;
background-color: transparent;
}
.go_up img {
background-color: #fff;
border-radius: 20px;
padding: 5px;
}
.go_up img:hover {
background-color: #ee6ef1;
}
/*sezione privacy*/
.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;
}
/*contatti - licenza*/
.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;
}
/*autore*/
.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) {
body {
font-size: 16.5px;
}
/*IMMAGINE CENTRATA - RESPONSIVE*/
.max_img {
width: 80%;
height: auto;
}
.article,
.footer {
width: 80%;
}
/*TITOLO INDEX*/
.hero h1 {
font-size: 80px;
}
.hero p {
font-size: 20px;
}
}
/*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 {
width: 100%;
font-size: 35px;
}
.subtitle {
font-size: 25px;
}
.article,
.footer,
.privacy {
width: 95%;
}
.gallery {
width: 40%;
}
.galleryText {
font-size: 18px;
}
.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%;
}
.contacts a {
line-height: 50px;
}
.license {
width: 100%;
font-size: 13px;
}
.make {
justify-content: center;
align-items: center;
width: 100%;
}
}
@media screen and (max-width: 600px) {
.gallery {
width: 60%;
}
}
@media (hover:none) {
/*Quando l'effetto hover non esiste, come sui dispositivi mobile*/
.galleryInfo {
opacity: 1;
}
.galleryText {
transform: translateY(0);
}
}
/*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;
}