-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathmain.less
161 lines (138 loc) · 3.71 KB
/
main.less
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
@bg-plain: white;
@bg-highlight: #f5e6c3;
@bg-highlight-more: #f0d79d;
@fg-lighter: #ccc5bb;
@fg-light: #88847d;
@fg-light-in-box: #736f68;
@fg-plain: black;
@fg-highlight: #800000;
@border-radius: 5px;
@border-normal: 2px solid @fg-highlight;
@border-light: 2px solid @fg-lighter;
@border-heavy: 5px solid @fg-highlight;
@page-margin: 8px;
@side-width: 200px;
@side-margin: 20px;
@time-width: 65px;
@star-width: 40px;
@main-width: 600px;
@full-width: (@time-width + @star-width + @main-width);
@icon-url: url('icons.png');
.icon(@x, @y, @w, @h) {
background: @icon-url @x @y no-repeat;
width: @w;
height: @h;
}
.icon-comment() { .icon( 0px, -64px, 14px, 14px); }
.icon-import() { .icon(-15px, -64px, 11px, 10px); }
.icon-export() { .icon(-27px, -64px, 13px, 10px); }
.icon-alert-bg() { .icon( 0px, -79px, 14px, 14px); }
.icon-alert-fg() { .icon(-15px, -79px, 14px, 14px); }
.icon-trash() { .icon(-30px, -78px, 12px, 15px); }
.icon-refresh() { .icon( 0px, -94px, 39px, 40px); }
.icon-ios-share() { .icon( 0px, -67px, 10px, 14px); background-size: 25px; }
.icon-permalink() { .icon(-21px,-135px, 17px, 17px); }
@import "fonts.less";
html { .font-normal; color: @fg-plain; background: @bg-plain; width: 100%; overflow-y: scroll; }
body { margin: @page-margin; }
strong, b { .font-heavy; }
h1, h2, h3, h4, h5, .new_day { .font-title; }
h1 {
font-size: 25px; margin: 0 0 8px 0; padding: 0;
a { text-decoration: none; }
}
hr { position: relative; z-index: 2; width: 100%; margin: 0; border: none; padding: 0; height: 2px; background: @fg-highlight; }
a { color: @fg-plain; outline: 0; }
.js-link { text-decoration: underline; cursor: pointer; }
form { position: relative; clear: left; z-index: 1; overflow: auto; }
input {
margin: 0 4px 4px 0;
border: @border-light;
border-radius: @border-radius;
padding: 3px;
background: @bg-plain;
}
input[type="text"] { box-shadow: none !important; }
.discreet { .font-small(); color: @fg-light-in-box; }
.disabled { color: @fg-lighter !important; cursor: auto !important; }
.selected { .font-heavy; border-color: @fg-highlight !important; }
.hint {
position: relative;
z-index: 3;
clear: left;
max-width: @full-width;
background: @bg-plain;
color: @fg-light;
font-size: 0.8em;
padding-top: 5px;
}
.popup-wrap {
position: fixed;
z-index: 9;
top: 0; left: 0;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
text-align: center;
background-color: @bg-plain;
background: rgba(255, 255, 255, 0.85);
}
.popup-title {
.font-title;
font-size: 1.5em;
margin-top: 20px;
}
.popup {
display: none !important;
.popup-wrap & { display: inline-block !important; }
position: relative;
top: 20px;
left: 0; right: 0;
margin: auto;
max-width: 90%;
max-height: 84%;
overflow: auto;
border: @border-normal;
border-radius: @border-radius;
padding: 5px;
text-align: left;
background: @bg-plain;
background: rgba(255, 255, 255, 0.9);
}
.popup-title + .popup { top: 0; }
img.popup { position: absolute; top: 0; bottom: 0; }
ul.popup, .popup ul {
width: 300px;
list-style-type: none;
margin-top: 0;
li {
width: 150px;
display: inline-block;
padding-bottom: 5px;
line-height: 1.0;
cursor: pointer;
}
}
.filters {
position: relative;
z-index: 4;
clear: both;
padding: 20px 0;
max-width: @full-width;
text-align: center;
background: @bg-plain;
> * { padding-left: @side-margin; }
ul { list-style-type: none; margin-top: 0; }
li { cursor: pointer; }
}
@import "head.less";
@import "item.less";
#main p { white-space: pre-line; }
#info_view p { white-space: initial; }
.view { display: none; }
@import "star.less";
@import "prog.less";
@import "part.less";
@import "info.less";
@media print { #banner, #prog_lists, #search, .item_expander { display: none !important; } }