Skip to content

Commit f0783d6

Browse files
committed
[#1519] Update pixel measurements to rems
1 parent 0761e6d commit f0783d6

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

client/styles/components/_editor.scss

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ pre.CodeMirror-line {
112112
}
113113

114114
.Toggle-replace-btn-div {
115-
height: 40px;
115+
height: #{40 / $base-font-size}rem;
116116
padding: 0;
117117
}
118118

@@ -122,20 +122,20 @@ pre.CodeMirror-line {
122122
}
123123

124124
.CodeMirror-find-div {
125-
padding: 0px;
125+
padding: 0;
126126
display: flex;
127127
justify-content: flex-start;
128128
align-items: center;
129129
flex-wrap: nowrap;
130130
}
131131

132132
.CodeMirror-search-modifiers {
133-
margin-left: 10px;
133+
margin-left: #{10 / $base-font-size}rem;
134134
}
135135

136136
.CodeMirror-search-results {
137-
margin: 0px 20px;
138-
width: 75px;
137+
margin: 0 #{20 / $base-font-size}rem;
138+
width: #{75 / $base-font-size}rem;
139139
font-size: #{12/$base-font-size}rem;
140140
}
141141

@@ -154,14 +154,14 @@ pre.CodeMirror-line {
154154
}
155155

156156
.CodeMirror-replace-options {
157-
width: 552px;
158-
height: 65px;
157+
width: #{552 / $base-font-size}rem;
158+
height: #{65 / $base-font-size}rem;
159159
display: flex;
160160
justify-content: center;
161161
align-items: center;
162162
}
163163
.CodeMirror-replace-options button {
164-
width: 200px;
164+
width: #{200 / $base-font-size}rem;
165165
}
166166

167167
.CodeMirror-search-title {
@@ -261,8 +261,8 @@ pre.CodeMirror-line {
261261

262262
.CodeMirror-search-match {
263263
background: gold;
264-
border-top: 1px solid orange;
265-
border-bottom: 1px solid orange;
264+
border-top: #{1 / $base-font-size}rem solid orange;
265+
border-bottom: #{1 / $base-font-size}rem solid orange;
266266
box-sizing: border-box;
267267
opacity: .5;
268268
}

client/styles/components/_overlay.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
max-height: 80%;
2626
max-width: 65%;
2727
position: relative;
28-
padding-bottom: 25px;
28+
padding-bottom: #{25 / $base-font-size}rem;
2929
}
3030

3131
.overlay__header {

0 commit comments

Comments
 (0)