Merge branch 'paginas' into dev
This commit is contained in:
commit
b43f5eb798
15
assets/styles/components/pagination/pagination-desktop.css
Normal file
15
assets/styles/components/pagination/pagination-desktop.css
Normal file
|
@ -0,0 +1,15 @@
|
|||
.pages {
|
||||
gap: 22px;
|
||||
}
|
||||
|
||||
.pages__move {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
font-size: 2.4rem;
|
||||
}
|
||||
|
||||
.pages__actual {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
font-size: 2.4rem;
|
||||
}
|
50
assets/styles/components/pagination/pagination.css
Normal file
50
assets/styles/components/pagination/pagination.css
Normal file
|
@ -0,0 +1,50 @@
|
|||
/*
|
||||
* Orden de los estilos
|
||||
* 1. Posicionamiento
|
||||
* 2. Modelo de caja
|
||||
* 3. Tipografía
|
||||
* 4. Visuales
|
||||
* 5. Otros
|
||||
* Metodología => BEM
|
||||
*/
|
||||
|
||||
/* Estilos para el componente de pginación */
|
||||
|
||||
.pages {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
margin: 15px 0;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.pages__move {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
padding: 5px;
|
||||
display: flex;
|
||||
border-radius: 50%;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-decoration: none;
|
||||
font-size: 2rem;
|
||||
font-weight: 200;
|
||||
color: var(--color-background);
|
||||
background-color: var(--color-secondary-purple);
|
||||
}
|
||||
|
||||
.pages__actual {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
padding: 5px;
|
||||
display: flex;
|
||||
border-radius: 50%;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 2rem;
|
||||
font-weight: 300;
|
||||
color: var(--color-black);
|
||||
border: 2px solid var(--color-secondary-purple);
|
||||
background-color: var(--color-background);
|
||||
}
|
|
@ -17,6 +17,8 @@
|
|||
|
||||
<?php defined('NABU') || exit() ?>
|
||||
|
||||
<a href="<?= $view . '&page=' . $page - 1 ?>">Anterior</a>
|
||||
<span><?= $page ?></span>
|
||||
<a href="<?= $view . '&page=' . $page + 1 ?>">Siguiente</a>
|
||||
<div class="pages">
|
||||
<a href="<?= $view . '&page=' . $page - 1 ?>" class = "pages__move">🡠</a>
|
||||
<span class = "pages__actual"><?= $page ?></span>
|
||||
<a href="<?= $view . '&page=' . $page + 1 ?>" class = "pages__move">🡢</a>
|
||||
</div>
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
'pages/all-articles/all-articles.css',
|
||||
'components/articles/articles.css',
|
||||
'components/footer/footer.css',
|
||||
'components/pagination/pagination.css',
|
||||
) ?>
|
||||
|
||||
<!-- Estilos para el responsive design -->
|
||||
|
@ -35,6 +36,7 @@
|
|||
array('file' => 'components/search/search-desktop.css', 'attributes' => 'media="screen and (min-width: 650px)"'),
|
||||
array('file' => 'pages/all-articles/all-articles-tablet.css', 'attributes' => 'media="screen and (min-width: 650px)"'),
|
||||
array('file' => 'pages/all-articles/all-articles-desktop.css', 'attributes' => 'media="screen and (min-width: 1024px)"'),
|
||||
array('file' => 'components/pagination/pagination-desktop.css', 'attributes' => 'media="screen and (min-width: 650px)"'),
|
||||
) ?>
|
||||
|
||||
<!-- Archivos de javascript -->
|
||||
|
|
Loading…
Reference in a new issue