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:
@@ -0,0 +1,40 @@
|
||||
/* Diferentes navegadores utilizan diferentes márgenes por defecto */
|
||||
body{
|
||||
margin:0; /* Igualo los márgenes por defecto de cualquier navegador*/
|
||||
}
|
||||
|
||||
/* Contenedor principal. Tendrá Flexbox */
|
||||
.container {
|
||||
display: flex; /* flex es igual a inline-flex. Los elementos dentro de un flex son flex-items */
|
||||
box-sizing: border-box; /* Unifica en un único valor de cada div los siguientes: margin, padding y border*/
|
||||
flex-direction: column;
|
||||
flex-wrap: wrap;
|
||||
border: 10px solid red;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
/* Cada box tiene unas propiedades, son simplemente estéticas*/
|
||||
.box {
|
||||
color: #fff;
|
||||
font-size: 50px;
|
||||
text-align: center;
|
||||
padding: 0px;
|
||||
text-shadow:4px 4px 0 rgba(0,0,0,0.1);
|
||||
flex-basis: 250px;
|
||||
}
|
||||
|
||||
/* Colores de cada box */
|
||||
.box1 { background:#1abc9c;}
|
||||
.box2 { background:#3498db;}
|
||||
.box3 { background:#9b59b6;}
|
||||
.box4 { background:#34495e;}
|
||||
.box5 { background:#f1c40f;}
|
||||
.box6 { background:#e67e22;}
|
||||
.box7 { background:#e74c3c;}
|
||||
.box8 { background:#bdc3c7;}
|
||||
.box9 { background:#2ecc71;}
|
||||
.box10 { background:#16a085;}
|
||||
|
||||
.box3 {flex-grow: 5;}
|
||||
.box4 {flex-basis: 100px;}
|
||||
.box5, .box6 { flex-grow: 6;}
|
||||
Reference in New Issue
Block a user