Skip to content

Commit 2e892aa

Browse files
authored
Merge pull request docker#11551 from thaJeztah/cleanup_styles_and_scripts
Cleanup styles and scripts
2 parents da58e40 + f48119b commit 2e892aa

14 files changed

+136
-652
lines changed

_scss/_buttons.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ a.button.outline-btn.min-hgt {
3838
border: 1px solid rgba(0, 0, 0, 0.1);
3939
text-shadow: 0 1px rgba(0, 0, 0, 0.2);
4040
}
41-
41+
/*
4242
.secondary-btn {
4343
background-color: rgba(255, 255, 255, 0.2);
4444
box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.1);
@@ -52,20 +52,20 @@ a.button.outline-btn.min-hgt {
5252
border: 1px solid rgba(0, 0, 0, 0.1);
5353
text-shadow: 0 1px rgba(0, 0, 0, 0.2);
5454
}
55+
*/
5556

5657
.outline-btn {
5758
background: #fff;
5859
border: 1px solid #0087C8;
5960
text-decoration: none;
6061
margin: 0;
62+
&:hover {
63+
color: #1488C6;
64+
}
6165
}
6266

63-
.outline-btn:hover,
67+
//.secondary-btn:hover,
6468
.primary-btn:hover,
65-
.secondary-btn:hover {
66-
opacity: 0.8;
67-
}
68-
6969
.outline-btn:hover {
70-
color: #1488C6;
70+
opacity: 0.8;
7171
}

_scss/_content.scss

Lines changed: 25 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,39 @@
1111
/*
1212
* Code formatting *************************************************************
1313
*/
14+
pre, code {
15+
background-color: #f5f8fa!important;
16+
color: #0c5176 !important;
17+
}
1418

1519
pre {
16-
background-color: #F5F8FA!important;
20+
border: 0;
21+
border-radius: 4px;
1722
display: block;
1823
padding: 20.5px!important;
1924
margin: 0 0 10px;
2025
font-size: 13px;
2126
line-height: 1.42857143;
22-
color: #333;
2327
word-break: normal !important;
2428
word-wrap: break-word;
25-
border: 0!important;
26-
border-radius: 4px;
29+
30+
code {
31+
overflow-x: auto;
32+
overflow-wrap: normal;
33+
white-space: pre;
34+
}
2735
}
2836

2937
code {
30-
background-color: #F5F8FA!important;
3138
border-radius: 2px;
32-
color: #0c5176 !important;
3339
font-size: 90%;
3440
padding: 3px 7px;
3541
overflow-x: scroll;
3642
white-space: nowrap;
3743
}
3844

39-
pre code {
40-
overflow-x: auto;
41-
overflow-wrap: normal;
42-
white-space: pre;
45+
.highlighter-rouge {
46+
margin: 15px 0;
4347
}
4448

4549
/*
@@ -59,53 +63,18 @@ pre code {
5963
float: left;
6064
height: 250px;
6165
width: 100%;
62-
}
63-
64-
.component-full {
65-
padding: 5px 0 10px 20px;
66-
float: left;
67-
min-height: 100px;
68-
margin: 0 0 15px 0;
69-
width: 100%;
70-
}
71-
72-
.component,
73-
.component-full {
7466
background: $bg-component;
75-
}
76-
77-
.component-full-icon {
78-
float: left;
79-
padding: 5px 15px 0 7px;
80-
}
81-
82-
.component-full p {
83-
margin: 0;
84-
}
85-
86-
.component-full h3 {
87-
margin-top: 10px;
88-
}
89-
90-
.component img,
91-
.component-full-icon img {
92-
width: 70px;
93-
height: 70px;
94-
}
95-
96-
.component-icon {
97-
margin: 0 auto;
98-
width: 70px;
99-
}
100-
101-
.component-full-copy {
102-
float: left;
103-
width: 80%;
104-
}
105-
106-
.component h3,
107-
.component p {
108-
margin: 0;
67+
img {
68+
width: 70px;
69+
height: 70px;
70+
}
71+
.component-icon {
72+
margin: 0 auto;
73+
width: 70px;
74+
}
75+
h3, p {
76+
margin: 0;
77+
}
10978
}
11079

11180
a.anchorLink {
@@ -130,29 +99,3 @@ a.glossary {
13099
text-decoration: none;
131100
}
132101
}
133-
134-
.highlighter-rouge {
135-
margin: 15px 0;
136-
}
137-
138-
code {
139-
padding: 3px 7px;
140-
font-size: 90%;
141-
color: #0c5176!important;
142-
background-color: rgba(12, 81, 118, 0.1);
143-
border-radius: 2px;
144-
}
145-
146-
pre {
147-
display: block;
148-
padding: 9.5px;
149-
margin: 0 0 10px;
150-
font-size: 13px;
151-
line-height: 1.42857143;
152-
color: #333;
153-
word-break: normal!important;
154-
word-wrap: break-word;
155-
background-color: #f5f5f5;
156-
border: 1px solid #ccc;
157-
border-radius: 4px;
158-
}

_scss/_global-header.scss

Lines changed: 0 additions & 53 deletions
This file was deleted.

_scss/_layout.scss

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@
4040
height: unset;
4141
}
4242

43-
.columns,
44-
.col-body {
45-
display: flex;
43+
.columns {
4644
flex-direction: column;
4745
}
4846

@@ -51,6 +49,7 @@
5149
}
5250

5351
.col-body {
52+
display: flex;
5453
flex-direction: row;
5554
flex: 1;
5655
min-height: 555px;
@@ -77,16 +76,12 @@
7776
}
7877

7978
.content {
80-
padding: 80px 70px 20px 70px;
79+
padding: 80px 20px 40px 40px;
8180
max-width: 1024px;
8281
min-width: 300px;
8382
min-height: 500px;
8483
}
8584

86-
.main-content {
87-
padding: 0 35px 25px 30px;
88-
}
89-
9085
section.section {
9186
margin: 0 auto;
9287
}

0 commit comments

Comments
 (0)