Refactoring of main page
This commit is contained in:
292
css/style.css
292
css/style.css
@ -1,214 +1,218 @@
|
||||
/* Global */
|
||||
|
||||
body {
|
||||
html {
|
||||
font-family: 'arial', sans-serif;
|
||||
font-weight: 400;
|
||||
font-size: 1em;
|
||||
color: #8a8683;
|
||||
background-color:#000000;
|
||||
max-width: 100%;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
body {
|
||||
width: 100%;
|
||||
max-width: 1000px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
|
||||
}
|
||||
|
||||
/* global items */
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
a:link {
|
||||
color: yellow;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: white;
|
||||
background-color:black;
|
||||
}
|
||||
|
||||
a:visited {
|
||||
color:yellow;
|
||||
}
|
||||
|
||||
/* Navigation */
|
||||
/* Header */
|
||||
|
||||
.menu {
|
||||
position:fixed;
|
||||
top:0px;
|
||||
width:100%;
|
||||
height:auto;
|
||||
z-index:100;
|
||||
background-color:black;
|
||||
}
|
||||
#logo {
|
||||
text-align: left;
|
||||
margin: 10px 0;
|
||||
}
|
||||
#nav {
|
||||
text-align: right;
|
||||
margin: 30px 0 0 0;
|
||||
}
|
||||
.navigation{
|
||||
float: right;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
}
|
||||
.navigation li{
|
||||
float: left;
|
||||
padding:0 0 0 50px;
|
||||
color:yellow;
|
||||
}
|
||||
.navigation li:hover{
|
||||
cursor:pointer;
|
||||
color: yellow;
|
||||
#main-header {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: start;
|
||||
align-items: start;
|
||||
|
||||
gap: 15px;
|
||||
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.navigation .active{
|
||||
cursor:pointer;
|
||||
color: yellow;
|
||||
#main-header > nav {
|
||||
flex: 1;
|
||||
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: end;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
/* General Slides */
|
||||
@media screen and (max-width: 600px) {
|
||||
#main-header {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.slide{
|
||||
background-color:rgba(0,0,0,0.7);
|
||||
background-attachment: fixed;
|
||||
width:100%;
|
||||
height:auto;
|
||||
position: relative;
|
||||
top:85px;
|
||||
#main-header > nav {
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
#bgvid {
|
||||
position:fixed;
|
||||
width:100%;
|
||||
z-index: -500;
|
||||
/* main area */
|
||||
|
||||
main {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 400px;
|
||||
grid-auto-rows: min-content;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
/* Slide 1 */
|
||||
|
||||
#slide1{
|
||||
}
|
||||
#slide1 h1 {
|
||||
font-size: 3.8em;
|
||||
letter-spacing: -3px;
|
||||
line-height: 0px;
|
||||
color:#8a8683;
|
||||
font-weight: 700;
|
||||
}
|
||||
#slide1 h2 {
|
||||
font-size: 2em;
|
||||
color: #8a8683;
|
||||
line-height: 0px;
|
||||
padding-bottom:20px;
|
||||
font-weight: 400;
|
||||
main > section {
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.button{
|
||||
color:#fff;
|
||||
background-color:#000;
|
||||
font-family:'arial';
|
||||
main aside {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.text{
|
||||
background-color:#fff;
|
||||
font-family:'arial';
|
||||
main .toolbar {
|
||||
grid-column: 1 / 3;
|
||||
padding: 0 10px;
|
||||
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.icons{
|
||||
width:100px;
|
||||
float:right;
|
||||
@media screen and (max-width: 889px){
|
||||
main {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
main > aside {
|
||||
grid-row: 3;
|
||||
}
|
||||
|
||||
main .toolbar {
|
||||
grid-row: 1;
|
||||
}
|
||||
}
|
||||
|
||||
/* toolbar */
|
||||
|
||||
.ecosysteme{
|
||||
width:50px;
|
||||
main .toolbar button {
|
||||
border: none;
|
||||
background: none;
|
||||
color: white;
|
||||
font-size: 1.5em;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* Tablet */
|
||||
@media screen and (max-width: 1024px) {
|
||||
|
||||
#logo {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
main .toolbar button img {
|
||||
height: 1em;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#nav {
|
||||
width:100%;
|
||||
margin:10px 0;
|
||||
main .toolbar button img[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.navigation{
|
||||
width: 100%;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding:0;
|
||||
/* description */
|
||||
|
||||
#description {
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
.navigation li{
|
||||
float: left;
|
||||
width:25%;
|
||||
padding:0;
|
||||
#description > *:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.slide{
|
||||
background-attachment: fixed;
|
||||
width:100%;
|
||||
position: relative;
|
||||
padding:140px 0 0 0;
|
||||
.hackerspace-logo {
|
||||
float: right;
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
#decorative {
|
||||
display:none;
|
||||
#description marquee {
|
||||
height:25px;
|
||||
max-width:400px;
|
||||
background-color:none;
|
||||
font-family:arial;
|
||||
font-size:12pt;
|
||||
color:#ffffff;
|
||||
}
|
||||
|
||||
#content {
|
||||
text-align:center;
|
||||
width:100%;
|
||||
/* side */
|
||||
|
||||
#main-side h2 {
|
||||
color: white;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
#slide1 h1 {
|
||||
line-height: 1em;
|
||||
}
|
||||
#slide1 h2 {
|
||||
line-height: 1em;
|
||||
#main-side address {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
/* Mobile */
|
||||
@media screen and (max-width: 480px) {
|
||||
|
||||
#logo {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
#main-side .info > * {
|
||||
margin: 1.33em 0;
|
||||
font-weight: bold;
|
||||
color: yellow;
|
||||
}
|
||||
|
||||
#nav {
|
||||
width:100%;
|
||||
margin:5px 0;
|
||||
@media screen and (max-width: 889px){
|
||||
#main-side {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.navigation{
|
||||
width: 100%;
|
||||
float: left;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding:0;
|
||||
/* background */
|
||||
|
||||
#background {
|
||||
display: block !important;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
z-index: -1;
|
||||
opacity: 0.3;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.navigation li{
|
||||
float: left;
|
||||
width:25%;
|
||||
#background img, #background video {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.slide{
|
||||
background-attachment: fixed;
|
||||
width:100%;
|
||||
position: relative;
|
||||
padding:150px 0;
|
||||
#background img {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
transition: linear 1s opacity;
|
||||
}
|
||||
|
||||
#slide1 h1 {
|
||||
line-height: 1em;
|
||||
}
|
||||
#slide1 h2 {
|
||||
line-height: 1em;
|
||||
#background img[hidden]{
|
||||
display: block;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 767px) {
|
||||
|
||||
#slide1{
|
||||
|
||||
text-align:justify;
|
||||
}
|
||||
#background::after {
|
||||
content: "";
|
||||
width: 100%;
|
||||
height: 25vh;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background: linear-gradient(to top, black, rgba(0,0,0,0));
|
||||
}
|
Reference in New Issue
Block a user