Skip to content

Commit 8da123c

Browse files
committed
2 parents bdd41fe + 3306708 commit 8da123c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+1069
-955
lines changed

src/themes/default/components/core/Breadcrumbs.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="breadcrumbs h5 c-darkgray hidden-xs">
2+
<div class="breadcrumbs h5 cl-accent hidden-xs">
33
<span v-for="link in routes" :key="link.route_link">
44
<router-link :to="link.route_link">
55
{{ link.name | htmlDecode }}

src/themes/default/components/core/ColorButton.vue

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<template>
22
<button
3-
class="mr10 mb5 bg-transparent brdr-1 brdr-circle brdr-c-transparent relative inline-flex pointer color"
3+
class="mr10 mb5 bg-cl-transparent brdr-1 brdr-circle brdr-cl-transparent :brdr-cl-bg-primary relative inline-flex pointer color"
44
@click="switchFilter(id, label)"
55
:class="{ active: active }"
66
:aria-label="$t('Select color ') + label"
77
>
88
<div
9-
class="absolute brdr-circle brdr-1 brdr-c-alto block color-inside"
9+
class="absolute brdr-circle brdr-1 brdr-cl-secondary block color-inside"
1010
:style="colorFrom(label)"
1111
/>
1212
</button>
@@ -30,21 +30,16 @@ export default {
3030
</script>
3131

3232
<style lang="scss" scoped>
33-
@import '~theme/css/base/global_vars';
34-
$lightgray-secondary: map-get($colors, lightgray-secondary);
35-
$emperor: map-get($colors, emperor);
33+
@import '~theme/css/variables/colors';
34+
@import '~theme/css/helpers/functions/color';
35+
$color-active: color(primary);
3636
3737
.color {
3838
width: 40px;
3939
height: 40px;
4040
41-
&:hover,
42-
&:focus {
43-
border-color: $lightgray-secondary;
44-
}
45-
4641
&.active {
47-
border-color: $emperor;
42+
border-color: $color-active;
4843
}
4944
}
5045

src/themes/default/components/core/CookieNotification.vue

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<template>
22
<transition name="fade" appear>
3-
<div class="cookie fixed w-100 bg-darkgray c-lightgray-secondary" v-if="isOpen">
3+
<div class="cookie fixed w-100 bg-cl-th-accent cl-tertiary" v-if="isOpen">
44
<div class="container">
55
<div class="row between-xs middle-xs px15">
66
<div class="col-xs-10 start-xs">
77
<span class="pr5">
88
{{ message }}
99
</span>
10-
<router-link :to="detailsLink" :title="detailsLinkText" class="c-gray">
10+
<router-link :to="detailsLink" :title="detailsLinkText" class="cl-bg-tertiary">
1111
{{ detailsLinkText }}
1212
</router-link>
1313
</div>
@@ -65,18 +65,18 @@ export default {
6565
</script>
6666

6767
<style lang="scss" scoped>
68-
@import '~theme/css/base/global_vars';
68+
@import '~theme/css/variables/colors';
69+
@import '~theme/css/helpers/functions/color';
70+
$color-icon: color(black);
71+
$bg-icon: color(suva-gray);
6972
70-
$gray: map-get($colors, gray);
71-
$black: map-get($colors, black);
72-
73-
.cookie {
74-
z-index: 2;
75-
bottom: 0;
76-
}
73+
.cookie {
74+
z-index: 2;
75+
bottom: 0;
76+
}
7777
78-
.icon:hover {
79-
color: $black;
80-
background-color: $gray;
81-
}
78+
.icon:hover {
79+
color: $color-icon;
80+
background-color: $bg-icon;
81+
}
8282
</style>

src/themes/default/components/core/Loader.vue

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<div class="loader-container fixed" v-if="isVisible">
33
<div class="loader-inner-container fixed">
44
<div class="spinner relative">
5-
<div class="double-bounce1 absolute w-100 brdr-circle bg-ocean-green"/>
6-
<div class="double-bounce2 absolute w-100 brdr-circle bg-ocean-green"/>
5+
<div class="double-bounce1 absolute w-100 brdr-circle bg-cl-th-success"/>
6+
<div class="double-bounce2 absolute w-100 brdr-circle bg-cl-th-success"/>
77
</div>
88
<div
9-
class="loader-message-container mt15 py5 px15 align-center h6 c-white"
9+
class="loader-message-container mt15 py5 px15 align-center h6 cl-white"
1010
v-if="message"
1111
>
1212
{{ message }}
@@ -25,8 +25,10 @@ export default {
2525

2626
<style lang="scss" scoped>
2727
@import '~theme/css/base/global_vars';
28-
$black: map-get($colors, black);
29-
$ocean-green: map-get($colors, ocean-green);
28+
@import '~theme/css/variables/colors';
29+
@import '~theme/css/helpers/functions/color';
30+
$color-container-bg: color(black);
31+
$color-message-bg: color(success);
3032
$z-index-loader: map-get($z-index, loader);
3133
3234
.loader-container {
@@ -35,7 +37,7 @@ $z-index-loader: map-get($z-index, loader);
3537
left: 0;
3638
bottom: 0;
3739
right: 0;
38-
background-color: rgba($black, 0.65);
40+
background-color: rgba($color-container-bg, 0.65);
3941
}
4042
4143
.loader-inner-container {
@@ -45,7 +47,7 @@ $z-index-loader: map-get($z-index, loader);
4547
}
4648
4749
.loader-message-container {
48-
background-color: rgba($ocean-green, 0.75);
50+
background-color: rgba($color-message-bg, 0.75);
4951
border-radius: 50px;
5052
letter-spacing: 0.5px;
5153
}

src/themes/default/components/core/Modal.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
@click.self="close">
77
<div class="modal-wrapper">
88
<div class="modal-center">
9-
<div class="modal-container bg-white" ref="modal-content" :style="style">
10-
<header class="modal-header py25 px65 h1 serif weight-700 bg-lightgray" v-if="$slots.header">
11-
<i slot="close" class="modal-close material-icons p15 c-gray" @click="close">close</i>
9+
<div class="modal-container bg-cl-primary" ref="modal-content" :style="style">
10+
<header class="modal-header py25 px65 h1 serif weight-700 bg-cl-secondary" v-if="$slots.header">
11+
<i slot="close" class="modal-close material-icons p15 cl-bg-tertiary" @click="close">close</i>
1212
<slot name="header"/>
1313
</header>
1414
<div class="modal-content pt30 pb60 px65" v-if="$slots.content || staticData">

src/themes/default/components/core/NewsletterPopup.vue

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
{{ $t('Sign up to our newsletter and receive a coupon for 10% off!') }}
1111
</p>
1212
<input
13-
class="border-box w-100 brdr-none brdr-bottom brdr-c-lightgray-secondary py10 h4 weight-200"
13+
class="border-box w-100 brdr-none brdr-bottom brdr-cl-primary py10 h4 weight-200"
1414
autofocus
1515
type="email"
1616
name="email"
1717
v-model="email"
1818
autocomplete="email"
1919
:placeholder="$t('E-mail address *')"
2020
>
21-
<p class="m0 c-red h6" v-if="$v.email.$error && !$v.email.required">Field is required.</p>
22-
<p class="m0 c-red h6" v-if="!$v.email.email && $v.email.$error">Please provide valid e-mail address.</p>
21+
<p class="m0 cl-error h6" v-if="$v.email.$error && !$v.email.required">Field is required.</p>
22+
<p class="m0 cl-error h6" v-if="!$v.email.email && $v.email.$error">Please provide valid e-mail address.</p>
2323
</div>
2424
<div class="mb35 center-xs">
2525
<button-full
@@ -81,18 +81,17 @@ export default {
8181
}
8282
</script>
8383
<style lang="scss" scoped>
84-
@import '~theme/css/base/global_vars';
85-
$lightgray-secondary: map-get($colors, lightgray-secondary);
86-
$black: map-get($colors, black);
84+
@import '~theme/css/variables/colors';
85+
@import '~theme/css/helpers/functions/color';
8786
8887
input::-webkit-input-placeholder,
8988
input::-moz-placeholder {
90-
color: $lightgray-secondary;
89+
color: color(tertiary);
9190
}
9291
9392
input:focus {
9493
outline: none;
95-
border-color: $black;
94+
border-color: color(black);
9695
transition: 0.3s all;
9796
}
9897
</style>

src/themes/default/components/core/Notification.vue

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="notifications fixed">
33
<transition-group name="fade-in-down">
44
<div
5-
class="notification mt30 border-box c-white"
5+
class="notification mt30 border-box cl-white"
66
v-for="(notification, index) in notifications"
77
:key="index"
88
:class="{
@@ -36,12 +36,14 @@ export default {
3636

3737
<style lang="scss" scoped>
3838
@import '~theme/css/base/global_vars';
39+
@import '~theme/css/variables/colors';
40+
@import '~theme/css/helpers/functions/color';
3941
$z-index-notification: map-get($z-index, notification);
40-
$red: map-get($colors, red);
41-
$la-palma: map-get($colors, la-palma);
42-
$russet: map-get($colors, russet);
43-
$darkgray: map-get($colors, darkgray);
44-
$black: map-get($colors, black);
42+
$color-error: color(error);
43+
$color-success: color(success);
44+
$color-warning: color(warning);
45+
$color-info: color(accent);
46+
$color-action: color(black);
4547
4648
.notifications {
4749
top: 100px;
@@ -63,25 +65,25 @@ $black: map-get($colors, black);
6365
}
6466
}
6567
.notification {
66-
box-shadow: 0px 0px 35px -5px rgba($black, .7);
68+
box-shadow: 0px 0px 35px -5px rgba($color-action, .7);
6769
6870
&:first-child {
6971
margin-top: 0;
7072
}
7173
}
7274
.actions {
73-
background: rgba($black, .2);
75+
background: rgba($color-action, .2);
7476
}
7577
.success {
76-
background: $la-palma;
78+
background: $color-success;
7779
}
7880
.error {
79-
background: $red;
81+
background: $color-error;
8082
}
8183
.warning {
82-
background: $russet;
84+
background: $color-warning;
8385
}
8486
.info {
85-
background: $darkgray;
87+
background: $color-info;
8688
}
8789
</style>

src/themes/default/components/core/OfflineBadge.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div
33
v-show="!isOnline"
4-
class="offline-badge fixed w-100 p10 bg-red c-white center-xs"
4+
class="offline-badge fixed w-100 p10 bg-cl-th-error cl-white center-xs"
55
>
66
{{ $t('You are offline, some of the functionalities are limited') }}
77
</div>

src/themes/default/components/core/Overlay.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,15 @@ export default {
2626
</script>
2727

2828
<style lang="scss" scoped>
29-
@import '~theme/css/base/global_vars';
30-
$black: map-get($colors, black);
29+
@import '~theme/css/variables/colors';
30+
@import '~theme/css/helpers/functions/color';
31+
$color-bg: color(black);
3132
3233
.overlay {
3334
height: 100vh;
3435
top: 0;
3536
left: 0;
36-
background-color: rgba($black, 0.4);
37+
background-color: rgba($color-bg, 0.4);
3738
z-index: 3;
3839
}
3940
</style>

src/themes/default/components/core/PriceButton.vue

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<template>
22
<span @click="switchFilter(id, from, to)">
33
<button
4-
class="relative brdr-c-gray brdr-1 bg-transparent mr10 pointer price-button"
4+
class="relative brdr-cl-bg-tertiary brdr-1 bg-cl-transparent mr10 pointer price-button"
55
:class="{ active: active }"
66
:aria-label="$t('Price ') + content"
77
>
8-
<div class="bg-transparent absolute block square"/>
8+
<div class="bg-cl-transparent absolute block square"/>
99
</button>
1010
<span>{{ content }}</span>
1111
</span>
@@ -20,9 +20,10 @@ export default { // TODO: move logic to parent component
2020
</script>
2121

2222
<style lang="scss" scoped>
23-
@import '~theme/css/base/global_vars';
24-
$lightgray-secondary: map-get($colors, lightgray-secondary);
25-
$darkgray: map-get($colors, darkgray);
23+
@import '~theme/css/variables/colors';
24+
@import '~theme/css/helpers/functions/color';
25+
$color-event: color(tertiary);
26+
$color-active: color(accent);
2627
2728
.price-button {
2829
width: 20px;
@@ -31,13 +32,13 @@ export default { // TODO: move logic to parent component
3132
&:hover,
3233
&:focus {
3334
.square {
34-
background-color: $lightgray-secondary;
35+
background-color: $color-event;
3536
}
3637
}
3738
3839
&.active {
3940
.square {
40-
background-color: $darkgray;
41+
background-color: $color-active;
4142
}
4243
}
4344
}

0 commit comments

Comments
 (0)