Skip to content

Commit ded1dbe

Browse files
committed
chore(): improvements import scss
1 parent 4084574 commit ded1dbe

File tree

3 files changed

+16
-19
lines changed

3 files changed

+16
-19
lines changed

src/app/app.component.css

Whitespace-only changes.

src/styles.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/styles.scss

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
@import '~@angular/material/prebuilt-themes/indigo-pink.css';
2-
3-
@import './scss/hljs.scss';
4-
@import './scss/variables.scss';
5-
@import './scss/utils.scss';
1+
@use './scss/hljs';
2+
@use './scss/variables';
3+
@use './scss/utils';
64

75
:root {
8-
--docsearch-primary-color: $red-color;
9-
--docsearch-highlight-color: $red-color;
10-
--docsearch-logo-color: $red-color;
6+
--docsearch-primary-color: variables.$red-color;
7+
--docsearch-highlight-color: variables.$red-color;
8+
--docsearch-logo-color: variables.$red-color;
119
--docsearch-modal-background: #fafafa;
1210
--docsearch-searchbox-focus-background: transparent;
1311
--docsearch-searchbox-shadow: none;
@@ -20,7 +18,7 @@ body {
2018
font-family: 'Source Sans Pro', 'Helvetica Neue', sans-serif;
2119
background-color: #fdfdfd;
2220
font-display: swap;
23-
color: $grey-color;
21+
color: variables.$grey-color;
2422
margin: 0;
2523
-webkit-font-smoothing: antialiased;
2624
}
@@ -37,7 +35,7 @@ strong {
3735
hr {
3836
width: 40px;
3937
height: 4px;
40-
background: $red-color;
38+
background: variables.$red-color;
4139
border: 0;
4240
margin: 50px 0;
4341
}
@@ -58,7 +56,7 @@ blockquote {
5856
height: 100%;
5957
width: 4px;
6058
content: '';
61-
background: $red-color;
59+
background: variables.$red-color;
6260
display: block;
6361
position: absolute;
6462
top: 0;
@@ -69,7 +67,7 @@ blockquote {
6967
}
7068

7169
strong {
72-
color: $red-color;
70+
color: variables.$red-color;
7371
&:first-of-type {
7472
display: block;
7573
text-transform: uppercase;
@@ -104,7 +102,7 @@ blockquote {
104102
figure {
105103
margin: 60px 30px;
106104
text-align: center;
107-
@include media(medium) {
105+
@include utils.media(medium) {
108106
margin: 60px 0;
109107
}
110108

@@ -119,7 +117,7 @@ figure {
119117
}
120118

121119
figcaption {
122-
color: rgba($silver-color, 0.9);
120+
color: rgba(variables.$silver-color, 0.9);
123121
font-size: 16px;
124122
margin: 20px 0;
125123

@@ -134,7 +132,7 @@ table {
134132
}
135133

136134
tr {
137-
@include media(medium) {
135+
@include utils.media(medium) {
138136
margin-bottom: 20px;
139137
display: block;
140138

@@ -156,15 +154,15 @@ tr:nth-of-type(even) td {
156154
tr:nth-of-type(odd) td:first-of-type {
157155
border-right: 1px solid #f0f2f3;
158156

159-
@include media(medium) {
157+
@include utils.media(medium) {
160158
border-right: 0;
161159
border-bottom: 1px solid #f0f2f3;
162160
}
163161
}
164162

165163
tr:nth-of-type(even) td:first-of-type {
166164
border-right: 1px solid #fff;
167-
@include media(medium) {
165+
@include utils.media(medium) {
168166
border-right: 0;
169167
border-bottom: 1px solid #fff;
170168
}
@@ -174,7 +172,7 @@ tr td {
174172
padding: 20px 30px;
175173
vertical-align: top;
176174

177-
@include media(medium) {
175+
@include utils.media(medium) {
178176
display: block;
179177
padding: 20px;
180178
}

0 commit comments

Comments
 (0)