mirror of
https://gitlab.com/tutorial-java-rafa-munoz/tutorial-java-2024-25/LMSGI-2024-25.git
synced 2025-11-09 18:03:06 +01:00
feat(sass): added
This commit is contained in:
77
Unidad_03_HTML/Flexbox/Ejercicio11_Flexbox-nav/index.css
Normal file
77
Unidad_03_HTML/Flexbox/Ejercicio11_Flexbox-nav/index.css
Normal file
@@ -0,0 +1,77 @@
|
||||
/* Some CSS Setup - nothing to do with flexbox */
|
||||
html {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
*, *:before, *:after {
|
||||
box-sizing: inherit;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
margin: 0;
|
||||
background: #3494E6;
|
||||
background: linear-gradient(to right, #EC6EAD, #3494E6);
|
||||
}
|
||||
|
||||
a {
|
||||
color:white;
|
||||
font-weight: 100;
|
||||
letter-spacing: 2px;
|
||||
text-decoration: none;
|
||||
background:rgba(0,0,0,0.2);
|
||||
padding:20px 5px;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
transition:all 0.5s;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
background:rgba(0,0,0,0.5);
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
max-width: 1000px;
|
||||
margin: 0 auto;
|
||||
padding:50px;
|
||||
}
|
||||
|
||||
|
||||
/* Flex Container */
|
||||
.flex-nav ul {
|
||||
border: 1px solid black;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.flex-nav li {
|
||||
flex: 3;
|
||||
}
|
||||
|
||||
.flex-nav .social {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
|
||||
@media all and (max-width:1000px) {
|
||||
.flex-nav ul {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.flex-nav li {
|
||||
flex: 1 1 50%;
|
||||
}
|
||||
|
||||
.flex-nav .social {
|
||||
flex: 1 1 25%;
|
||||
}
|
||||
}
|
||||
|
||||
@media all and (max-width:500px) {
|
||||
.flex-nav li {
|
||||
flex-basis: 100%;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user