-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathstyles.go
165 lines (158 loc) · 2.66 KB
/
styles.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
package main
const stylesContents = `
html, body {
margin: 0; padding: 0;
font-family: 'Helvetica', sans-serif;
font-size: 16px;
background: #ecf0f1;
}
* {
box-sizing: border-box;
}
img {
max-width: 100%;
}
.btn {
line-height: 20px;
padding: 10px 15px;
border: none;
background: #27ae60;
color: #fff;
font-weight: bold;
letter-spacing: 1px;
cursor: pointer;
display: inline-block;
}
a.btn {
text-decoration: none;
}
buttons.btn {
font-family: 'Helvetica', sans-serif;
}
.btn.btn-delete {
background: #c0392b;
}
.btn.btn-default {
background: #555;
}
a {
color: #268bd2;
}
nav {
background: #9b59b6;
position: absolute;
top: 0; bottom: 0; left: 0;
width: 270px;
}
nav header {
background: #8e44ad;
height: 70px;
padding: 15px;
line-height: 40px;
}
nav header h1 {
margin: 0;
color: #fff;
font-size: 32px;
}
nav header a {
position: absolute;
top: 15px; right: 15px;
line-height: 40px;
color: #eee;
font-size: 18px;
}
nav ul {
padding: 15px 0;
list-style-type: none;
}
nav ul li {
line-height: 20px;
font-size: 18px;
border-bottom: 2px solid #8e44ad;
}
nav ul li:first-child {
border-top: 2px solid #8e44ad;
}
nav ul li a {
display: block;
padding: 15px;
color: #fff;
text-decoration: none;
transition: padding 200ms;
}
nav ul li a:hover {
padding: 15px 5px 15px 25px;
}
nav footer {
position: absolute;
bottom: 0; left: 0; right: 0;
background: #8e44ad;
color: #ecf0f1;
padding: 15px;
}
nav footer a {
color: #ecf0f1;
}
section {
position: absolute;
top: 0; bottom: 0; left: 270px;
width: 800px;
background: #fff;
overflow: auto;
}
section header {
background: #bdc3c7;
display: flex;
height: 70px;
padding: 15px;
line-height: 40px;
}
section header input {
flex: 1;
height: 40px;
padding: 8px 0;
background: transparent;
border: none;
line-height: 22px;
font-size: 22px;
color: #2c3e50;
border-bottom: 2px dashed #2c3e50;
font-family: 'Helvetica', sans-serif;
}
section header input:focus {
outline: none;
border-bottom: 2px solid #657b83;
}
section header .buttons {
flex: 0 0 200px;
text-align: right;
height: 40px;
}
section .contents textarea {
width: 100%;
height: 100%;
min-height: 800px;
background: transparent;
border: none;
}
section .contents .CodeMirror {
height: calc(100vh - 70px);
}
section .contents .body {
padding: 15px;
color: #2c3e50;
}
section .contents .body p, section .contents .body li {
font-size: 18px;
}
section .contents .body h1,
section .contents .body h2,
section .contents .body h3,
section .contents .body h4,
section .contents .body h5,
section .contents .body h6 {
background: #ecf0f1;
padding: 6px;
}
`