Skip to content

Commit 01dca7f

Browse files
authored
Merge pull request #2222 from lindapaiste/chore/delete-unused-css
Delete unused CSS classes, variables, and theme properties.
2 parents 075c0fc + 3204f3b commit 01dca7f

12 files changed

+0
-344
lines changed

client/styles/abstracts/_variables.scss

-43
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,13 @@ $base-font-size: 12;
33
//colors
44
$p5js-pink: #ed225d;
55
$p5js-pink-opacity: #ed225d80;
6-
$processing-blue: #007BBB;
76
$p5js-active-pink: #f10046;
87
$white: #fff;
98
$black: #000;
109
$yellow: #F5DC23;
11-
$orange: #ffa500;
12-
$red: #ff0000;
13-
$lightsteelblue: #B0C4DE;
1410
$dodgerblue: #1E90FF;
15-
// $icon-hover-color: #333;
1611
$p5-contrast-pink: #FFA9D9;
1712

18-
$border-color: #B5B5B5;
1913
$outline-color: #0F9DD7;
2014

2115
// Grayscale values
@@ -43,7 +37,6 @@ $themes: (
4337
primary-text-color: $dark,
4438
secondary-text-color: $medium-dark,
4539
inactive-text-color: $middle-dark,
46-
dropzone-text-color: $dark,
4740
modal-button-color: $dark,
4841
background-color: $lighter,
4942
button-background-color: $light,
@@ -67,15 +60,10 @@ $themes: (
6760
console-background-color: $light,
6861
console-input-background-color: $lightest,
6962
console-color: $darker,
70-
console-logged-times-color: $lightest,
7163
console-arrow-color: $middle-gray,
7264
console-active-arrow-color: #0071AD,
7365
console-header-background-color: $medium-light,
7466
console-header-color: $darker,
75-
console-info-background-color: #5276B7,
76-
console-warn-background-color: #996B00,
77-
console-debug-background-color: #0071AD,
78-
console-error-background-color: #D11518,
7967
ide-border-color: $medium-light,
8068
editor-gutter-color: $lighter,
8169
file-hover-color: $light,
@@ -99,9 +87,6 @@ $themes: (
9987
codefold-icon-open: url("../images/triangle-arrow-down.svg?byUrl"),
10088
codefold-icon-closed: url("../images/triangle-arrow-right.svg?byUrl"),
10189

102-
primary-button-color: $lightest,
103-
primary-button-background-color: $p5js-pink,
104-
10590
table-button-color: $lightest,
10691
table-button-background-color: $middle-gray,
10792
table-button-active-color: $lightest,
@@ -146,7 +131,6 @@ $themes: (
146131
logo-background-color: $lightest,
147132
heavy-text-color: $lightest,
148133
primary-text-color: $lightest,
149-
dropzone-text-color: $black,
150134
modal-button-color: $lightest,
151135
secondary-text-color: $medium-light,
152136
inactive-text-color: $middle-light,
@@ -172,15 +156,10 @@ $themes: (
172156
console-background-color: $dark,
173157
console-input-background-color: $darker,
174158
console-color: $lightest,
175-
console-logged-times-color: $dark,
176159
console-arrow-color: $medium-light,
177160
console-active-arrow-color: #097BB3,
178161
console-header-background-color: $medium-dark,
179162
console-header-color: $lightest,
180-
console-info-background-color: #5276B7,
181-
console-warn-background-color: #966C08,
182-
console-error-background-color: #DD3134,
183-
console-debug-background-color: #097BB3,
184163
ide-border-color: $middle-dark,
185164
editor-gutter-color: $darker,
186165
file-hover-color: $dark,
@@ -204,9 +183,6 @@ $themes: (
204183
codefold-icon-open: url("../images/triangle-arrow-down-white.svg?byUrl"),
205184
codefold-icon-closed: url("../images/triangle-arrow-right-white.svg?byUrl"),
206185

207-
primary-button-color: $lightest,
208-
primary-button-background-color: $p5js-pink,
209-
210186
table-button-color: $lightest,
211187
table-button-background-color: $middle-gray,
212188
table-button-active-color: $lightest,
@@ -249,7 +225,6 @@ $themes: (
249225
logo-background-color: $darker,
250226
heavy-text-color: $yellow,
251227
primary-text-color: $lightest,
252-
dropzone-text-color: $black,
253228
modal-button-color: $dark,
254229
secondary-text-color: $lighter,
255230
inactive-text-color: $light,
@@ -275,15 +250,10 @@ $themes: (
275250
console-background-color: $dark,
276251
console-input-background-color: $darker,
277252
console-color: $lightest,
278-
console-logged-times-color: $darker,
279253
console-arrow-color: $lightest,
280254
console-active-arrow-color: $dodgerblue,
281255
console-header-background-color: $medium-dark,
282256
console-header-color: $lightest,
283-
console-info-background-color: $lightsteelblue,
284-
console-warn-background-color: $orange,
285-
console-debug-background-color: $dodgerblue,
286-
console-error-background-color: $red,
287257
ide-border-color: $middle-dark,
288258
editor-gutter-color: $darker,
289259
file-hover-color: $dark,
@@ -307,9 +277,6 @@ $themes: (
307277
codefold-icon-open: url("../images/triangle-arrow-down-white.svg?byUrl"),
308278
codefold-icon-closed: url("../images/triangle-arrow-right-white.svg?byUrl"),
309279

310-
primary-button-color: $lightest,
311-
primary-button-background-color: $p5js-pink,
312-
313280
table-button-color: $dark,
314281
table-button-background-color: $middle-gray,
315282
table-button-active-color: $dark,
@@ -352,13 +319,3 @@ $themes: (
352319
$toast-background-color: $medium-dark;
353320
$toast-text-color: $lightest;
354321

355-
$light-console-error-color: #D11518;
356-
$light-console-warn-color: #FAAF00;
357-
$light-console-debug-color: #0071AD;
358-
359-
$dark-console-error-color: #DF3A3D;
360-
$dark-console-warn-color: #F5BC38;
361-
$dark-console-debug-color: #0C99E2;
362-
363-
$about-play-background-color: rgba(255, 255, 255, 0.7);
364-
$about-button-border-color: rgba(151, 151, 151, 0.7);

client/styles/components/_about.scss

-38
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,6 @@
66
}
77
}
88

9-
// hello p5 video link button css
10-
11-
// .about__play-video {
12-
// padding-top: #{9 / $base-font-size}rem;
13-
// padding-left: #{5 / $base-font-size}rem;
14-
// }
15-
16-
// .about__play-video-button {
17-
// @include themify() {
18-
// @extend %toolbar-button;
19-
// width: #{32 / $base-font-size}rem;
20-
// height: #{32 / $base-font-size}rem;
21-
// line-height: #{34 / $base-font-size}rem;
22-
// border-radius: #{24 / $base-font-size}rem;
23-
// background-color: $about-play-background-color;
24-
// border: solid 0.5px $about-button-border-color;
25-
// &:hover {
26-
// border-color: getThemifyVariable('button-background-hover-color');
27-
// }
28-
// }
29-
// padding-left: 2px;
30-
// margin-right: #{9 / $base-font-size}rem;
31-
// svg {
32-
// width: #{11 / $base-font-size}rem;
33-
// height: #{11 / $base-font-size}rem;
34-
// margin-left: #{1 / $base-font-size}rem;
35-
// }
36-
// }
37-
389
.about__content {
3910
display: flex;
4011
flex-direction: row;
@@ -105,12 +76,3 @@
10576
.about__footer-list {
10677
padding-top: #{12 / $base-font-size}rem;
10778
}
108-
109-
.about__ok-button {
110-
@include themify() {
111-
@extend %button;
112-
padding: #{7 / $base-font-size}rem #{13 / $base-font-size}rem;
113-
font-size: #{16 / $base-font-size}rem;
114-
border: #{0.5 / $base-font-size}rem solid $toast-background-color;
115-
}
116-
}

client/styles/components/_collection-popover.scss

-95
This file was deleted.

client/styles/components/_console.scss

-4
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@
3434
font-weight: normal;
3535
}
3636

37-
.preview-console__icon {
38-
padding-right: #{20 / $base-font-size}rem;
39-
}
40-
4137
.preview-console__messages {
4238
display: flex;
4339
flex: 1;

client/styles/components/_copyable-input.scss

-8
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@
22
position: relative;
33
}
44

5-
.copyable-input__tooltip {
6-
position: absolute;
7-
top: 0;
8-
left: 0;
9-
bottom: 0;
10-
right: 0;
11-
}
12-
135
.copyable-input__value {
146
width: 100%;
157
font-size: #{16 / $base-font-size}rem;

client/styles/components/_dashboard-header.scss

-8
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@
1313
width: 100%;
1414
}
1515

16-
.dashboard-header--no-vertical-padding {
17-
padding: 0 66px;
18-
}
19-
20-
.dashboard-header--no-vertical-padding {
21-
padding: 0 66px;
22-
}
23-
2416
.dashboard-header__switcher {
2517
flex: 1;
2618
}

client/styles/components/_help-modal.scss

-39
This file was deleted.

client/styles/components/_modal.scss

-7
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,6 @@
4545
flex: 1;
4646
}
4747

48-
input.new-file-form__submit,
49-
input.new-folder-form__submit {
50-
@include themify() {
51-
background-color: getThemifyVariable("button-secondary-background-color");
52-
}
53-
}
54-
5548
.modal__divider {
5649
text-align: center;
5750
margin: #{20 / $base-font-size}rem 0;

client/styles/components/_nav.scss

-15
Original file line numberDiff line numberDiff line change
@@ -153,21 +153,6 @@
153153
}
154154
}
155155

156-
.nav__announce {
157-
position: absolute;
158-
top: #{40 / $base-font-size}rem;
159-
right: #{88 / $base-font-size}rem;
160-
width: #{398 / $base-font-size}rem;
161-
padding: #{5 / $base-font-size}rem 0;
162-
text-transform: uppercase;
163-
background-color: #ffbc00;
164-
color: white;
165-
text-align: center;
166-
padding: #{7 / $base-font-size}rem #{8 / $base-font-size}rem;
167-
line-height: 145%;
168-
z-index: 0;
169-
}
170-
171156
.nav__item-logo {
172157
position: relative;
173158
height: #{42 / $base-font-size}rem;

0 commit comments

Comments
 (0)