Skip to content

Commit

Permalink
update color variables for themes
Browse files Browse the repository at this point in the history
  • Loading branch information
arthur-lemeur committed Oct 23, 2023
1 parent afb163a commit fdd6b1c
Show file tree
Hide file tree
Showing 14 changed files with 43 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/renderer/assets/styles/bookDetailsDialog.css
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
border: none;
height: 35px;
background-color: transparent;
color: black;
color: var(--color-primary);
font-size: 0.9rem;
border-bottom: 1px solid #c1c1c1;
}
Expand Down
3 changes: 2 additions & 1 deletion src/renderer/assets/styles/components/breadcrumb.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
font-size: 16px;
display: flex;
align-items: center;
color: rgb(59, 59, 59);
/* color: rgb(59, 59, 59); */
color: var(--color-accent);
position: fixed;
top: 123px;
width: calc(100% - 120px);
Expand Down
12 changes: 9 additions & 3 deletions src/renderer/assets/styles/components/buttons.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ button {
background: none;
border: 0;
height: 30px;
fill: black;
fill: var(--color-primary);
cursor: pointer;

&:hover {
Expand Down Expand Up @@ -88,6 +88,7 @@ button {
height: 14px;
margin-right: 8px;
transition: all 0.2s;
fill: var(--color-primary);
}

&.icon_end {
Expand Down Expand Up @@ -121,12 +122,14 @@ button {
width: 14px;
vertical-align: -2px;
margin-left: 5px;
fill: var(--color-primary);

}

&.button_icon {
height: 16px;
padding: 8px 20px;
background: white;
background: var(--color-secondary);
overflow: visible;

& input {
Expand Down Expand Up @@ -212,14 +215,17 @@ button {
.button_transparency,
.button_transparency_icon {
display: inline-block;
color: #000;
color: var(--color-primary);
transition: all 0.2s;
border-radius: 5px;
background: rgba(0, 0, 0, 0);
font-size: 1rem;
font-family: "Arial", sans-serif;
font-weight: 600;
cursor: pointer;
& svg {
fill: var(--color-primary);
}

&:hover {
background: rgba(0, 0, 0, 0.1);
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/assets/styles/components/dropdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
& a,
& span label {
text-decoration: none;
color: black;
color: var(--color-primary);
padding: 0.7rem;
text-align: center;
cursor: pointer;
Expand Down
3 changes: 2 additions & 1 deletion src/renderer/assets/styles/components/inputs.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ input[type="search"] {
border-radius: 0;

/* outline: inherit; */
color: black;
color: var(--color-primary);
font-size: 0.9rem;

&::placeholder {
Expand Down Expand Up @@ -153,6 +153,7 @@ form[role="search"] {
font-size: 16px;
height: 1.2rem;
width: 14rem;
color: var(--color-secondary);
background: var(--color-medium-grey);
cursor: pointer;

Expand Down
4 changes: 2 additions & 2 deletions src/renderer/assets/styles/components/modals.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@
z-index: 102;
display: flex;
flex-direction: column;
background-color: white;
background-color: var(--color-secondary);
overflow-y: auto;
overflow-x: hidden;
align-content: flex-start;
color: #3b3b3b;
color: var(--color-primary);;
position: relative;
box-sizing: border-box;

Expand Down
8 changes: 5 additions & 3 deletions src/renderer/assets/styles/components/publications.css
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@
overflow: hidden;
text-align: center;
margin: 10px 5%;
color: black;
color: var(--color-primary);
;

&:not(:first-child) {
font-size: 90%;
Expand Down Expand Up @@ -373,7 +374,8 @@
& a,
& span label {
text-decoration: none;
color: black;
color: var(--color-primary);
;
padding: 0.7rem;
text-align: center;
cursor: pointer;
Expand Down Expand Up @@ -432,7 +434,7 @@
overflow: hidden;
text-align: center;
margin: 10px 5%;
color: black;
color: var(--color-primary);
}

& .box {
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/assets/styles/components/tags.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
border: none;
height: 35px;
background-color: transparent;
color: black;
color: var(--color-primary);
font-size: 0.9rem;
border-bottom: 1px solid #c1c1c1;

Expand Down
10 changes: 10 additions & 0 deletions src/renderer/assets/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@

:root {
user-select: none;
color: var(--color-primary);
}

*,
Expand Down Expand Up @@ -165,6 +166,15 @@ nav + nav + .breadcrumb + .main {
top: 181px;
}

table > * {
background-color: var(--color-light-grey);
color: black !important;
}

table tr td {
border-bottom: 1px solid black;
}

/* ============== FAST CLASS ================= */

.anchor_link {
Expand Down
6 changes: 3 additions & 3 deletions src/renderer/assets/styles/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
margin-right: 60px;

&.active {
color: black;
border-bottom: 3px solid black;
color: var(--color-primary);
border-bottom: 3px solid var(--color-primary);
padding-bottom: 15px;
}
}
Expand Down Expand Up @@ -87,7 +87,7 @@
border: none;
height: 35px;
background-color: transparent;
color: black;
color: var(--color-primary);
font-size: 0.9rem;
}

Expand Down
4 changes: 2 additions & 2 deletions src/renderer/assets/styles/partials/mixins.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
@define-mixin button_primary {
position: relative;
display: inline;
border: 1px solid black;
border: 1px solid var(--color-primary);
border-radius: 5px;
text-align: center;
color: black;
color: var(--color-primary);
text-decoration: none;
overflow: hidden;
cursor: pointer;
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/assets/styles/reader-app.css
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ button {
}

& > .active {
color: black;
color: var(--color-primary);
border-bottom: 3px solid black;
padding-bottom: 15px;
}
Expand Down Expand Up @@ -1266,7 +1266,7 @@ input[type=radio] + label {
left: 50%;
background: white;
font-size: 16px;
color: black;
color: var(--color-primary);
text-align: center;
box-shadow: 0 0 46px 0 rgba(0, 0, 0, 0.12);
transform: translateX(-50%) translateY(0%);
Expand Down
6 changes: 3 additions & 3 deletions src/renderer/library/components/settings/_settings.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@use "./variable" as c;
@use "./screenSizes" as s;
@use "readium-desktop/renderer/assets/styles/partials/screenSizes" as s;

#settings-container {
display: inline-flex;
Expand All @@ -16,7 +16,7 @@
background-color: lighten(c.$color-primary, 10%);
color: white;
}
@media only screen and (min-width: s.$large) {
@media screen and (min-width: s.$large) {
display: grid;
grid-template-columns: repeat(5, 1fr);
label {
Expand Down Expand Up @@ -44,7 +44,7 @@
text-align: center;
}
}
@media only screen and (min-width: s.$large) {
@media screen and (min-width: s.$large) {
display: block;
}
}

0 comments on commit fdd6b1c

Please sign in to comment.