Skip to content

Commit 43bf84f

Browse files
author
Emmanouil Konstantinidis
committed
Convert CSS to LESS
1 parent fb117e2 commit 43bf84f

File tree

1 file changed

+32
-49
lines changed

1 file changed

+32
-49
lines changed

drfdocs/static/less/style.less

Lines changed: 32 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,29 @@ body {
1818
padding: 5px 20px;
1919
margin: 20px 0;
2020
background-color: #ecf0f1;
21-
}
2221

23-
.endpoint .title {
24-
font-family: Menlo,Monaco,Consolas,"Courier New",monospace;
25-
word-wrap: break-word;
26-
}
22+
.title {
23+
font-family: Menlo,Monaco,Consolas,"Courier New",monospace;
24+
word-wrap: break-word;
25+
}
2726

28-
.endpoint .methods {
29-
margin-bottom: 0;
30-
}
27+
.methods {
28+
margin-bottom: 0;
3129

32-
.endpoint .methods .method {
33-
padding: 4px 8px;
34-
margin-top: 10.5px;
35-
color: #FFF;
36-
}
30+
.method {
31+
padding: 4px 8px;
32+
margin-top: 10.5px;
33+
color: #FFF;
3734

38-
.endpoint .methods .method.get { background-color: #18bc9c; }
39-
.endpoint .methods .method.post { background-color: #f39c12; }
40-
.endpoint .methods .method.put { background-color: #028d94; }
41-
.endpoint .methods .method.patch { background-color: #028d94; }
42-
.endpoint .methods .method.delete { background-color: #e74c3c; }
43-
.endpoint .methods .method.options { background-color: #3498db; }
35+
&.get { background-color: #18bc9c; }
36+
&.post { background-color: #f39c12; }
37+
&.patch { background-color: #028d94; }
38+
&.put { background-color: #028d94; }
39+
&.delete { background-color: #e74c3c; }
40+
&.options { background-color: #3498db; }
41+
}
42+
}
43+
}
4444

4545
/* @end Endpoint */
4646

@@ -51,15 +51,15 @@ body {
5151
text-align: center;
5252
padding: 20px;
5353
margin-bottom: 20px;
54-
}
5554

56-
.footer .links {
57-
padding: 20px 0;
58-
}
55+
.links {
56+
padding: 20px 0;
5957

60-
.footer .links .fa {
61-
margin: 0 10px;
62-
font-size: 22px;
58+
.fa {
59+
margin: 0 10px;
60+
font-size: 22px;
61+
}
62+
}
6363
}
6464

6565
/* @end Footer */
@@ -72,29 +72,12 @@ body {
7272
}
7373

7474
@keyframes octocat-wave {
75-
0% {
76-
transform: rotate(0deg);
77-
}
78-
79-
20% {
80-
transform: rotate(-25deg);
81-
}
82-
83-
40% {
84-
transform: rotate(10deg);
85-
}
86-
87-
60% {
88-
transform: rotate(-25deg);
89-
}
90-
91-
80% {
92-
transform: rotate(10deg);
93-
}
94-
95-
100% {
96-
transform: rotate(0deg);
97-
}
75+
0% { transform: rotate(0deg); }
76+
20% { transform: rotate(-25deg); }
77+
40% { transform: rotate(10deg); }
78+
60% { transform: rotate(-25deg); }
79+
80% { transform: rotate(10deg); }
80+
100% { transform: rotate(0deg); }
9881
}
9982

10083
@media (max-width: 500px) {

0 commit comments

Comments
 (0)