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:
37
Unidad_03_HTML/Flexbox/Ejercicio09_Flex-property/index.css
Normal file
37
Unidad_03_HTML/Flexbox/Ejercicio09_Flex-property/index.css
Normal file
@@ -0,0 +1,37 @@
|
||||
/* 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*/
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
/* 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: 1;
|
||||
line-height: 100px;
|
||||
}
|
||||
|
||||
/* 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;}
|
||||
|
||||
.box2 { flex-grow: 2;}
|
||||
.box5 { flex-grow: 3;}
|
||||
Reference in New Issue
Block a user