This repository was archived by the owner on Feb 15, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 121
Expand file tree
/
Copy pathshop.component.scss
More file actions
114 lines (95 loc) · 2.52 KB
/
shop.component.scss
File metadata and controls
114 lines (95 loc) · 2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/**
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@use '@angular/material' as mat;
// TODO: #12. Enable HighContrast mode
@use '@angular/cdk';
:host {
display: flex;
justify-content: center;
}
.shop {
width: 75%;
padding: 5%;
padding-top: 0;
display: flex;
flex-direction: column;
.dumpling-container {
display: flex;
flex-wrap: wrap;
height: 45vh;
overflow: hidden;
place-content: space-evenly center;
}
.dumpling-customizations {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
.selection-card {
margin: 0 10px 10px 0;
display: flex;
flex-direction: column;
background-color: mat.get-color-from-palette(mat.$pink-palette, 100);
.mat-card-content {
display: flex;
flex-direction: column;
}
}
.quantity-slider {
width: 100%;
}
.fillings {
flex-grow: 1;
// TODO: #7. Create selectable controls with Angular Material
}
.quantity {
flex-grow: 3;
}
.color {
flex-grow: 2;
margin: 0 0 10px 0;
}
}
.purchase-button {
width: 100%;
padding: 10px 0;
border-radius: 5px;
background-color: mat.get-color-from-palette(mat.$pink-palette, A100);
// TODO: #12. Enable HighContrast mode
@include cdk.high-contrast() {
outline: solid 1px;
background-color: mat.get-color-from-palette(mat.$pink-palette, 50);
}
text-align: center;
text-transform: uppercase;
letter-spacing: 12px;
h3 {
margin: 16px 0 16px;
}
}
}
:host-context(.dark-theme) {
.dumpling-customizations .selection-card {
background-color: mat.get-color-from-palette(mat.$indigo-palette, 400);
}
.purchase-button {
background-color: mat.get-color-from-palette(mat.$light-green-palette, A100);
// TODO: #12. Enable HighContrast mode
@include cdk.high-contrast() {
outline: solid 1px;
background-color: mat.get-color-from-palette(mat.$light-green-palette, 50);
}
}
}