Skip to content

Commit

Permalink
Añadiendo extends y getmaps a SASS
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarezlmatias committed Oct 14, 2023
1 parent 1934e75 commit 44b980b
Show file tree
Hide file tree
Showing 14 changed files with 92 additions and 69 deletions.
1 change: 1 addition & 0 deletions CSS/maps.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 21 additions & 29 deletions CSS/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion CSS/style.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions scss/_contacto.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

.body-contacto {
overflow-x: hidden !important;
width: 100% !important;
width: map-get($ancho, total) !important;
}

/*** Imagen de fondo de la página ***/
Expand Down Expand Up @@ -45,7 +45,7 @@
}

.foto-proyecto {
width: 90%;
width: map-get($ancho, noventa);
}

/*** Fin de Secciones Miembros y Proyectos ***/
Expand Down Expand Up @@ -128,7 +128,7 @@
button {
background-color: $color-titulo-seccion;
border-radius: $margen-xs;
width: 120px;
width: map-get($ancho, botonpequenio);
height: $margen-m;
margin-top: $margen-xsss;
border-color: $color-borde-punteado;
Expand Down
6 changes: 2 additions & 4 deletions scss/_estrategias.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@

.articulo-estrategias {
@extend %formato-articulo;
@extend %estilo-borde-inferior;
margin-bottom: $margen-s;
border-bottom: dashed;
border-color: $color-borde-inferior;
.titulo-articulo-estrategias {
text-align: center;
color: $color-titulo-articulo;
Expand All @@ -56,10 +55,9 @@
/*** Botón y texto Leer más ***/

.leer-mas {
@extend %formato-texto;
text-decoration: none !important;
font-size: large;
font-weight: bold;
text-align: center;
color: $color-fondo-botones;
text-indent: $margen-xxss;
&:hover {
Expand Down
23 changes: 23 additions & 0 deletions scss/_extend.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/* DISPLAY */

%display {
display: grid;
place-items: center;
}

/* FIN DE DISPLAY */

/* IMÁGENES DE FONDO */

%imagen-fondo {
Expand Down Expand Up @@ -41,6 +50,15 @@

/* FIN DE ARTÍCULOS */

/* TEXTOS */

%formato-texto {
text-align: center;
font-weight: bold;
}

/* FIN DE TEXTOS */

/* BORDES */

%estilo-borde {
Expand All @@ -49,6 +67,11 @@
border-color: $color-borde-punteado;
}

%estilo-borde-inferior {
border-bottom: dashed;
border-color: $color-borde-inferior;
}

/* FIN DE BORDES */

/* CARDS */
Expand Down
6 changes: 2 additions & 4 deletions scss/_generales.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@

.titulo-seccion, .subtitulo-seccion {
color: $color-titulo-seccion !important;
text-align: center;
font-weight: bold;
@extend %formato-texto;
}

.titulo-seccion {
Expand All @@ -36,9 +35,8 @@
color: $color-white;
padding: $margen-xsss;
text-decoration: none;
font-weight: bold;
text-align: center;
max-width: fit-content;
@extend %formato-texto;
&:hover {
background: $color-hover-botones !important;
}
Expand Down
3 changes: 1 addition & 2 deletions scss/_inicio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@
/*** Secciones secundarias ***/

.elemento-seccion {
display: grid;
place-items: center;
@extend %display;
.imgseccion {
&:hover {
filter: opacity(50%);
Expand Down
4 changes: 2 additions & 2 deletions scss/_maingenerales.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*** Banner ***/

.banner {
width: 100%;
width: map-get($ancho, total);
margin-top: $margen-s;
border-top-style: solid;
border-bottom-style: solid;
Expand All @@ -16,7 +16,7 @@
/*** Videos embebidos ***/

.video {
width: 560px;
width: map-get($ancho, video);
height: 360px;
border-radius: $margen-l;
@extend %estilo-borde;
Expand Down
17 changes: 17 additions & 0 deletions scss/_maps.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* WIDTH */

$ancho:(
total: 100%,
noventaycinco: 95%,
noventa: 90%,
ochenta: 80%,
video: 560px,
videomediano: 400px,
videopequenio: 350px,
videomobile: 280px,
botongrande: 200px,
botoncomun: 150px,
botonpequenio: 120px
);

/* FIN DE WIDTH */
Loading

0 comments on commit 44b980b

Please sign in to comment.