Initial commit
This commit is contained in:
190
themes/default/assets/css/pagination.css
Normal file
190
themes/default/assets/css/pagination.css
Normal file
@@ -0,0 +1,190 @@
|
||||
.pagination-bar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: .2rem .3rem;
|
||||
background: linear-gradient(to bottom, rgba(15, 15, 15, 0.9), rgba(1, 1, 1, 0.95));
|
||||
border-top: 2px solid rgba(255, 255, 255, 0.2);
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
|
||||
gap: 1rem;
|
||||
flex-wrap: wrap;
|
||||
|
||||
&.up {
|
||||
margin-top: 2em;
|
||||
}
|
||||
|
||||
&.down {
|
||||
margin-bottom: 2em;
|
||||
}
|
||||
}
|
||||
|
||||
.pagination-bar a,
|
||||
.pagination-bar .disabled {
|
||||
color: #8ab4f8;
|
||||
text-decoration: none;
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: 6px;
|
||||
transition: color 0.3s ease-in-out, background 0.2s;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.pagination-bar a:hover {
|
||||
color: #fff;
|
||||
background: rgba(138, 180, 248, 0.2);
|
||||
}
|
||||
|
||||
.pagination-bar .disabled {
|
||||
opacity: 0.4;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.page-select {
|
||||
position: relative;
|
||||
display: block;
|
||||
color: var(--footer-link-color);
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
font-size: 1rem;
|
||||
z-index: 10;
|
||||
|
||||
&[open] {
|
||||
summary {
|
||||
background: rgba(138, 180, 248, 0.2);
|
||||
color: #fff;
|
||||
border-color: rgba(138, 180, 248, 0.4);
|
||||
}
|
||||
}
|
||||
|
||||
summary {
|
||||
display: block;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
padding: 0.5rem 1rem;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
border-radius: 6px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
summary::-webkit-details-marker {
|
||||
display: none;
|
||||
}
|
||||
|
||||
summary::after {
|
||||
margin-left: 0.5em;
|
||||
font-family: monospace;
|
||||
content: '▶';
|
||||
}
|
||||
|
||||
&.down summary~* {
|
||||
top: 2.5em;
|
||||
|
||||
&[open] {
|
||||
summary::after {
|
||||
font-family: monospace;
|
||||
content: '▼';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.up summary~* {
|
||||
bottom: 2.5em;
|
||||
|
||||
&[open] {
|
||||
summary::after {
|
||||
font-family: monospace;
|
||||
content: '▲';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
summary~* {
|
||||
position: absolute;
|
||||
border: 1px solid #333;
|
||||
border-radius: 0.5rem;
|
||||
background: #111;
|
||||
box-shadow: 0 1px 1em #000;
|
||||
max-height: 50vh;
|
||||
overflow-y: auto;
|
||||
margin: 0;
|
||||
padding: 0.5rem;
|
||||
list-style: none;
|
||||
min-width: 6rem;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
ul {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
li a,
|
||||
li span.current {
|
||||
display: block;
|
||||
padding: 0.4rem 1rem;
|
||||
text-align: center;
|
||||
color: var(--footer-link-color);
|
||||
text-decoration: none;
|
||||
border-radius: 4px;
|
||||
transition: background-color 0.2s, color 0.2s;
|
||||
}
|
||||
|
||||
li a:hover {
|
||||
background-color: rgba(255, 255, 255, 0.05);
|
||||
color: var(--footer-link-hover-color);
|
||||
}
|
||||
|
||||
li span.current {
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
}
|
||||
|
||||
.pagination-bar.dossier-pagination {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 1em;
|
||||
margin: 2em 0;
|
||||
}
|
||||
|
||||
.pagination-bar h2 {
|
||||
flex: 1 1 100%;
|
||||
font-size: 1.5em;
|
||||
margin-bottom: 0.5em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.page-select.dossier-select summary {
|
||||
cursor: pointer;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.page-select.dossier-select ul {
|
||||
margin: 0.5em 0 0 0;
|
||||
padding-left: 1em;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.page-select.dossier-select li {
|
||||
margin: 0.25em 0;
|
||||
}
|
||||
|
||||
.page-select.dossier-select .current {
|
||||
font-weight: bold;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.prev-page,
|
||||
.next-page {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.disabled {
|
||||
opacity: 0.4;
|
||||
pointer-events: none;
|
||||
}
|
||||
Reference in New Issue
Block a user