Skip to content

Commit

Permalink
cleanup colors
Browse files Browse the repository at this point in the history
  • Loading branch information
matuskosut committed Jul 9, 2024
1 parent 09cbf17 commit 959fe1c
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 9 deletions.
4 changes: 4 additions & 0 deletions pages/.vitepress/components/CallDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ export default {
<v-btn
v-bind="props"
rounded="sm"
:class="{
'hc-text-dark': blue ? false : true,
'hc-text-light': blue ? true : false,
}"
:block="block"
:color="blue ? '#253a55' : '#fff'"
:size="size"
Expand Down
2 changes: 1 addition & 1 deletion pages/.vitepress/components/CardElement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default {
<v-card
v-bind="props"
class="h-100"
color="rgb(62,98,138)"
color="#3E628A"
variant="tonal"
:title="title"
:subtitle="subtitle"
Expand Down
4 changes: 4 additions & 0 deletions pages/.vitepress/components/ContactDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ export default {
<v-btn
v-bind="props"
rounded="sm"
:class="{
'hc-text-dark': blue ? false : true,
'hc-text-light': blue ? true : false,
}"
:block="block"
:color="blue ? '#253a55' : '#fff'"
:size="size"
Expand Down
4 changes: 4 additions & 0 deletions pages/.vitepress/components/SimpleButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ export default {
<v-btn
v-bind="props"
rounded="sm"
:class="{
'hc-text-dark': blue ? false : true,
'hc-text-light': blue ? true : false,
}"
:block="block"
:color="blue ? '#253a55' : '#fff'"
:size="size"
Expand Down
28 changes: 20 additions & 8 deletions pages/.vitepress/theme/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@
:root {
--vp-home-hero-name-color: #00509E;
--vp-c-brand-1: #00509E;
--vp-page-texts-dark: #3C3C44;
--vp-page-texts-light: #FFFFFF;
--vp-block-background-blue: #3E628A; /* #3E628A == rgb(62,98,138) */
--vp-block-background-light: #F2F2F2;
}

.hc-text-dark {
color: var(--vp-page-texts-dark) !important;
}

.hc-text-light {
color: var(--vp-page-texts-light) !important;
}

.hc-home-page {
Expand Down Expand Up @@ -31,32 +43,32 @@
/* Odd=light block */
.hc-block:nth-child(odd) {
box-shadow: inset 0px 3px 10px rgba(0, 0, 0, 0.2);
background-color: #f2f2f2;
color: rgb(60, 60, 68);
background-color: var(--vp-block-background-light);
color: var(--vp-page-texts-dark);
}

/* Even=blue block */
.hc-block:nth-child(even) {
/* background-color: rgb(238, 238, 238); */
background-color: rgb(62,98,138);
background-color: var(--vp-block-background-blue);
color: rgb(255, 255, 255);
}

.hc-blue-block {
background-color: rgb(62,98,138) !important;
background-color: var(--vp-block-background-blue) !important;
color: rgb(255, 255, 255) !important;
}

.hc-light-block {
/* background-color: rgb(255, 255, 255) !important; */
background-color: #f2f2f2 !important;
color: rgb(60, 60, 68) !important;
background-color: var(--vp-block-background-light) !important;
color: var(--vp-page-texts-dark) !important;
/* background-color: unset !important; */
}

.hc-footer-block {
background-color: rgb(40,45,55) !important;
/* color: rgb(60, 60, 68) !important; */
background-color: #282D37 !important;
/* color: var(--vp-page-texts-dark) !important; */
color: rgb(255, 255, 255) !important;
}

Expand Down

0 comments on commit 959fe1c

Please sign in to comment.