-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.less
137 lines (122 loc) · 2.45 KB
/
index.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
@basecolor: green;
@middlelight: lighten(@basecolor, 70%);
@lighten: lighten(@basecolor, 80%);
@darken: darken(@basecolor, 5%);
@darkest: darken(@basecolor, 10%);
/* Tags */
body{
background-color: @darkest;
}
p {
text-indent: 1ex;
}
footer{
padding: 24px 12px;
text-align: center;
}
/* Classes */
.jumbotron{
margin-top: 12px;
}
.jumbotron, .breadcrumb{
border-color: @darken;
background-color: @middlelight;
border-style: double solid;
border-width: 9px 5px;
border-radius: 0 !important;
.box-shadow(2px);
}
.single-article article{
h3, h4{
margin: 24px 0 12px 0;
}
h3{
border-bottom: 2px solid @darken;
}
h4{
border-left: 1em solid @darken;
padding-left: 1ex;
}
}
.subdirectory > div{
.transition(ease, 0.1s, all);
}
.toc{
z-index: 1;
position: relative;
float: right;
min-width: 18em;
max-width: 25%;
}
.panel-info{
.box-shadow(2px);
margin-left: 20px;
margin-right: 20px;
margin-top: -10px;
}
.panel-default{
position: relative;
border-radius: 6px;
background: @lighten;
border: 1px solid @darken;
border-width: 0;
padding: 1em 4em 1em 1em;
&::before,
&::after {
position: absolute;
bottom: 8px;
z-index: -1;
content: '';
width: 30%;
height: 50%;
box-shadow: 0 10px 15px rgba(0, 0, 0, .2);
}
&::before {
-webkit-transform: rotate(-3deg);
transform: rotate(-3deg);
left: .3em;
}
&::after {
-webkit-transform: rotate(3deg);
transform: rotate(3deg);
right: .3em;
}
.panel-heading{
border-width: 0;
.box-shadow(2px);
margin: 0 0 40px -30px;
background: linear-gradient(to right, @middlelight 0%, @middlelight 0.5%, @middlelight 13%, #ffffff 16%);
-webkit-transform: rotate(0.2deg);
transform: rotate(0.2deg);
.lastupdate{
font-size: 0.5em;
color: gray;
}
}
.panel-body{
img {
display: block;
max-width: 100%;
height: auto;
}
}
}
section.single-article .lastupdate{
font-size: 0.8em;
color: gray;
}
/* mix-ins */
.box-shadow(@px){
box-shadow: @px @px 4px #a0a0a0;
}
.transition(@timing, @duration, @property){
transition-timing-function: @timing;
transition-duration: @duration;
transition-property: @property;
-webkit-transition-timing-function: @timing;
-webkit-transition-duration: @duration;
-webkit-transition-property: @property;
-moz-transition-timing-function: @timing;
-moz-transition-duration: @duration;
-moz-transition-property: @property;
}