Skip to content

Commit

Permalink
Merge pull request #22 from mrkyns/pagination_css
Browse files Browse the repository at this point in the history
small correction for proper hover effect on Pagination
  • Loading branch information
StephanUllmann authored Apr 20, 2023
2 parents 8a6e10e + afa9b09 commit dcdc9fa
Showing 1 changed file with 54 additions and 8 deletions.
62 changes: 54 additions & 8 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ nav ul li a:hover {
.search_wrapper {
height: 45px;
border-radius: 10px;
background-color: #d9d9d9;
}

.search_input {
Expand Down Expand Up @@ -356,24 +355,71 @@ nav ul li a:hover {
flex-direction: column;
}

#root > div > div.Body > div.pagination > ul {
.pagination ul {
display: flex;
justify-content: flex-start;
align-items: center;
gap: 50px;
gap: 10px;
list-style: none;
flex-direction: row;
cursor: pointer;

width: fit-content;
min-height: 15px;
border: none;
border-radius: 10px 10px 10px 10px;
background-color: var(--article_bg);
color: var(--text);
outline: none;
margin: 40px;
margin: 10px 0;
}

.pagination ul li {
cursor: pointer;
min-width: 40px;
padding: 10px;
text-align: center;
transition: all 0.3s ease;
}

.pagination ul li:hover {
background: var(--accent_light);
border-radius: 10px;
color: var(--text_light);
padding: 9px;
}

.pagination ul li:first-child {
border-right: 2px solid var(--accent_border);
transition: all 0.3s ease;
}

.pagination ul li:first-child:hover {
background: var(--accent_light);
border-right: 2px solid var(--text_light);
color: var(--text_light);
padding: 10px;
border-radius: 10px 0 0 10px;
}

.pagination ul li:last-child {
border-left: 2px solid var(--accent_border);
transition: all 0.3s ease;
}

.pagination ul li:last-child:hover {
background: var(--accent_light);
border-left: 2px solid var(--text_light);
color: var(--text_light);
padding: 10px;
border-radius: 0 10px 10px 0;
}

.break {
background: none;
}

.break:hover {
background: transparent;
color: var(--text);
}

/* ==============================
Expand Down Expand Up @@ -407,7 +453,7 @@ nav ul li a:hover {
justify-content: center;
align-items: center;
list-style-type: none;
color: var(--text);
color: #000;
margin-bottom: 9px;
}

Expand All @@ -417,7 +463,7 @@ nav ul li a:hover {
}

.Footer-list ul li a {
color: var(--text);
color: #000;
text-decoration: none;
transition: all 0.3s ease;
}
Expand Down

0 comments on commit dcdc9fa

Please sign in to comment.