Skip to content

Commit 8e3e0c4

Browse files
committed
Design angepasst, damit es weniger Platz verbraucht und besser lesbar ist (im Pycharm Plugin). Neue Einträge in der Materialienliste.
1 parent 17bfcc2 commit 8e3e0c4

File tree

5 files changed

+141
-119
lines changed

5 files changed

+141
-119
lines changed

css/material_viewer.css

Lines changed: 34 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
#viewer {
2+
text-align: left;
3+
}
4+
#viewer * {
5+
font-size: 12pt;
6+
}
17
#viewer img {
2-
max-width: 60%;
8+
max-width: 90%;
9+
max-height: 400px;
310
height: auto;
4-
margin: 10px auto;
11+
width: auto;
12+
margin: 20px auto;
513
display: block;
614
}
715
#viewer .column_container :after {
@@ -24,26 +32,30 @@
2432
#viewer h1 {
2533
text-align: center;
2634
margin-bottom: 50px;
35+
font-size: 1.8em;
2736
}
2837
#viewer h2 {
29-
border-bottom: 1px solid #ffb400;
30-
margin-top: 50px;
38+
border-bottom: 1px solid #66b8a0;
39+
margin: 45px 0 15px 0;
40+
font-size: 1.4em;
3141
}
3242
#viewer h3 {
33-
margin-top: 20px;
34-
border-bottom: 1px solid #66b8a0;
43+
margin: 20px 0 10px 0;
44+
border-bottom: 1px solid #ffb400;
45+
font-size: 1.25em;
3546
}
3647
#viewer h4 {
37-
margin-top: 20px;
48+
font-size: 1.1em;
49+
margin: 12px 0 5px 0;
3850
border-bottom: 1px solid darkred;
3951
}
4052
#viewer .content_section {
41-
font-size: 13pt;
53+
font-size: 12pt;
4254
margin-left: 40px;
4355
margin-bottom: 30px;
4456
}
4557
#viewer .content_sub_section {
46-
font-size: 13pt;
58+
font-size: 12pt;
4759
margin-left: 20px;
4860
margin-bottom: 20px;
4961
}
@@ -56,27 +68,18 @@ h6 {
5668
text-align: left;
5769
margin-bottom: 4px;
5870
}
59-
h2 {
60-
margin-bottom: 30px;
61-
}
62-
h3 {
63-
margin-bottom: 20px;
71+
#chooser {
72+
margin-top: 20px;
6473
}
6574
#search {
66-
margin-bottom: 50px;
75+
margin-bottom: 35px;
6776
}
6877
#search input {
6978
padding: 5px;
7079
font-size: 14pt;
7180
line-height: 1;
7281
width: 100%;
7382
}
74-
#viewer {
75-
text-align: left;
76-
}
77-
#viewer code {
78-
font-size: 14pt;
79-
}
8083
#search_results > ul {
8184
list-style: none;
8285
}
@@ -90,22 +93,24 @@ h3 {
9093
padding: 0;
9194
}
9295
#materials > ul > li {
93-
margin-bottom: 60px;
96+
margin-bottom: 45px;
9497
}
9598
#materials ul {
9699
list-style: none;
97-
padding-left: 12px;
100+
padding-left: 5px;
98101
}
99102
#materials hr {
100103
margin: 5px 0 16px 0;
101104
}
102105
#materials h2 {
103-
border-bottom: 1px solid #ffb400;
104-
margin-top: 50px;
106+
font-size: 16pt;
107+
margin: 24px 0;
108+
border-bottom: 1px solid #66b8a0;
105109
}
106110
#materials h3 {
107-
margin-top: 20px;
108-
border-bottom: 1px solid #66b8a0;
111+
margin: 12px 0;
112+
font-size: 14pt;
113+
border-bottom: 1px solid #ffb400;
109114
}
110115
#materials h4,
111116
#materials h5,
@@ -115,10 +120,11 @@ h3 {
115120
.e_res {
116121
background-color: #fafafa;
117122
padding: 5px;
118-
margin-bottom: 5px;
123+
margin-bottom: 2px;
119124
}
120125
.e_res:hover {
121126
background-color: #f0f0f0;
127+
cursor: pointer;
122128
}
123129
.e_name {
124130
margin: 0;

less/codo_theme.less

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

less/material_viewer.less

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,10 @@ h1, h2, h3, h4, h5, h6 {
77
margin-bottom: 4px;
88
}
99

10-
h2 {
11-
margin-bottom: 30px;
10+
#chooser{
11+
margin-top: 20px;
1212
}
1313

14-
h3 {
15-
margin-bottom: 20px;
16-
}
1714

1815
#search {
1916
input {
@@ -23,17 +20,7 @@ h3 {
2320
width: 100%;
2421
}
2522

26-
margin-bottom: 50px;
27-
}
28-
29-
#viewer {
30-
text-align: left;
31-
32-
#btn_back {
33-
}
34-
code {
35-
font-size: 14pt;
36-
}
23+
margin-bottom: 35px;
3724
}
3825

3926
#search_results {
@@ -56,27 +43,29 @@ h3 {
5643
padding: 0;
5744

5845
> li {
59-
margin-bottom: 60px;
46+
margin-bottom: 45px;
6047
}
6148
}
6249

6350
ul {
6451
list-style: none;
65-
padding-left: 12px;
52+
padding-left: 5px;
6653
}
6754

6855
hr {
6956
margin: 5px 0 @mb_hr 0;
7057
}
7158

7259
h2 {
73-
border-bottom: 1px solid #ffb400;
74-
margin-top: 50px;
60+
font-size: 16pt;
61+
margin: 24px 0;
62+
border-bottom: 1px solid #66b8a0;
7563
}
7664

7765
h3 {
78-
margin-top: 20px;
79-
border-bottom: 1px solid #66b8a0;
66+
margin: 12px 0;
67+
font-size: 14pt;
68+
border-bottom: 1px solid #ffb400;
8069
}
8170

8271
h4, h5, h6 {
@@ -87,10 +76,11 @@ h3 {
8776
.e_res {
8877
background-color: #fafafa;
8978
padding: 5px;
90-
margin-bottom: 5px;
79+
margin-bottom: 2px;
9180

9281
&:hover {
9382
background-color: #f0f0f0;
83+
cursor: pointer;
9484
}
9585
}
9686

less/viewer_styles.less

Lines changed: 39 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,40 @@
66
@ml_sub_section: 20px;
77
@mb_sub_section: 20px;
88

9-
@fs_content: 13pt;
9+
@fs_content: 12pt;
1010

1111
#viewer {
12+
text-align: left;
1213

13-
@import "codo_theme";
14+
* {
15+
font-size: @fs_content;
16+
}
17+
18+
img {
19+
max-width: 90%;
20+
max-height: 400px;
21+
height: auto;
22+
width: auto;
23+
margin: 20px auto;
24+
display: block;
25+
}
26+
27+
.column_container {
28+
:after {
29+
clear: both;
30+
height: 0;
31+
visibility: hidden;
32+
content: "";
33+
}
34+
35+
.column {
36+
float: left;
37+
}
38+
}
1439

15-
p{
40+
p {
1641
margin-bottom: 5px;
42+
1743
}
1844

1945
pre {
@@ -25,20 +51,25 @@
2551
h1 {
2652
text-align: center;
2753
margin-bottom: 50px;
54+
font-size: 1.8em;
2855
}
2956

3057
h2 {
31-
border-bottom: 1px solid #ffb400;
32-
margin-top: 50px;
58+
border-bottom: 1px solid #66b8a0;
59+
margin: 45px 0 15px 0;
60+
font-size: 1.4em;
3361
}
3462

3563
h3 {
36-
margin-top: 20px;
37-
border-bottom: 1px solid #66b8a0;
64+
margin: 20px 0 10px 0;
65+
border-bottom: 1px solid #ffb400;
66+
font-size: 1.25em;
67+
3868
}
3969

4070
h4 {
41-
margin-top: 20px;
71+
font-size: 1.1em;
72+
margin: 12px 0 5px 0;
4273
border-bottom: 1px solid darkred;
4374
}
4475

0 commit comments

Comments
 (0)