Skip to content

Commit bac23cc

Browse files
committed
fixed bug(font fira code)
1 parent 85ed5a1 commit bac23cc

File tree

1 file changed

+47
-51
lines changed

1 file changed

+47
-51
lines changed

src/index.css

Lines changed: 47 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
1-
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;500;600;700&display=swap');
2-
@import url('https://unpkg.com/firacode@1.205.0/distr/fira_code.css');
1+
@import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;500;600;700&display=swap");
2+
@import url("https://unpkg.com/firacode@1.205.0/distr/fira_code.css");
33
@tailwind base;
44
@tailwind components;
55
@tailwind utilities;
66

7-
body,html{
7+
body,
8+
html {
89
overflow: hidden;
910
}
10-
11-
.codeFont{
12-
font-family: 'Fira Code';
11+
.CodeMirror * {
12+
font-family: "Fira Code", monospace;
1313
}
1414

1515
.playground {
1616
height: 100%;
1717
background-color: #1e1e25;
1818
}
1919

20-
2120
.code-editor {
2221
height: 33%;
2322
overflow: hidden;
@@ -53,12 +52,12 @@ body,html{
5352
width: 180px;
5453
}
5554

56-
video{
55+
video {
5756
height: 180px !important;
5857
width: 180px;
5958
object-fit: cover;
6059
border-radius: 0.5rem;
61-
box-shadow: 0px 0px 10px rgba(0,0,0,0.3);
60+
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
6261
}
6362

6463
/* resizable panels */
@@ -74,7 +73,6 @@ video{
7473
border: 1px solid gray;
7574
}
7675
.panel:first-child {
77-
7876
}
7977

8078
.resizer {
@@ -84,10 +82,10 @@ video{
8482
position: relative;
8583
cursor: row-resize;
8684
flex-shrink: 0;
87-
-webkit-user-select: none; /* Chrome all / Safari all */
88-
-moz-user-select: none; /* Firefox all */
89-
-ms-user-select: none; /* IE 10+ */
90-
user-select: none; /* Likely future */
85+
-webkit-user-select: none; /* Chrome all / Safari all */
86+
-moz-user-select: none; /* Firefox all */
87+
-ms-user-select: none; /* IE 10+ */
88+
user-select: none; /* Likely future */
9189
}
9290

9391
.resizer::after,
@@ -106,67 +104,65 @@ video{
106104
left: 0;
107105
}
108106

109-
110107
/* override classes */
111-
.CodeMirror{
108+
.CodeMirror {
112109
height: 100% !important;
113110
}
114111

115-
.video-off{
112+
.video-off {
116113
position: relative;
117114
height: 180px;
118115
width: 180px;
119116
background-color: #333;
120117
border-radius: 0.5rem;
121118
overflow: hidden;
122-
box-shadow: 0px 0px 10px rgba(0,0,0,0.3);
119+
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
123120
transition: all 0.3s ease;
124121
}
125-
.video-off video{
122+
.video-off video {
126123
z-index: -1;
127124
}
128125

129-
.video-off:before{
130-
content: "";
131-
position: absolute;
132-
top: 0;
133-
left: 0;
134-
width: 100%;
135-
height: 100%;
136-
background-color: #333;
137-
opacity: 1;
138-
border-radius: 0.35rem;
139-
}
140-
141-
.video-off:after{
142-
content: "";
143-
position: absolute;
144-
top: 50%;
145-
left: 50%;
146-
transform: translate(-50%, -50%);
147-
width: 70%;
148-
height: 70%;
149-
background-image: url("https://source.boringavatars.com/beam/?colors=16cff7,EE9B00,0a6ab4,c8d8d7,e76f51");
150-
background-repeat: no-repeat;
151-
background-size: cover;
152-
background-color: #333;
153-
opacity: .7;
154-
border-radius: 0.35rem;
126+
.video-off:before {
127+
content: "";
128+
position: absolute;
129+
top: 0;
130+
left: 0;
131+
width: 100%;
132+
height: 100%;
133+
background-color: #333;
134+
opacity: 1;
135+
border-radius: 0.35rem;
136+
}
137+
138+
.video-off:after {
139+
content: "";
140+
position: absolute;
141+
top: 50%;
142+
left: 50%;
143+
transform: translate(-50%, -50%);
144+
width: 70%;
145+
height: 70%;
146+
background-image: url("https://source.boringavatars.com/beam/?colors=16cff7,EE9B00,0a6ab4,c8d8d7,e76f51");
147+
background-repeat: no-repeat;
148+
background-size: cover;
149+
background-color: #333;
150+
opacity: 0.7;
151+
border-radius: 0.35rem;
155152
}
156153

157154
.custom-shadow {
158-
box-shadow: 0px 5px 20px rgba(0,0,0,0.7);
155+
box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.7);
159156
}
160157

161158
.custom-shadow-medium {
162-
box-shadow: 0px 2px 4px rgba(0,0,0,0.4);
159+
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4);
163160
}
164161

165162
.custom-shadow-light {
166-
box-shadow: 0px 5px 8px rgba(0,0,0,0.6);
163+
box-shadow: 0px 5px 8px rgba(0, 0, 0, 0.6);
167164
}
168165

169-
170-
.video-grid-height{
166+
.video-grid-height {
171167
height: calc(100vh - 150px);
172-
}
168+
}

0 commit comments

Comments
 (0)