-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcustomstyle.less
174 lines (151 loc) · 3.24 KB
/
customstyle.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
162
163
164
165
166
167
168
169
170
171
172
173
174
body {
padding-top: @navbar-height + @navbar-margin-bottom;
}
.footer {
margin-top: 50px;
color: @gray-light;
a {
color: @gray-light;
}
}
.jumbotron {
border: 1px solid @tkweb-border-color;
}
//== The calendar app
//
//##
.cal-baseline-fix {
margin-top: 11px;
}
.cal-facebook-icon {
display: inline-block;
border-radius: 5px;
width: 1em;
padding: 0 0.1em;
background-color: #fff;
&:hover {
background-color: #2d4373;
}
svg {
width: .8em;
height: .8em;
fill: #000;
stroke: none;
}
}
//== The tk-brand app
//
//##
.tk-brand {
font-family: 'Computer Modern Typewriter', 'Courier New', Courier, monospace;
font-size: 118%;
line-height: 0;
vertical-align: -0.005em;
white-space: nowrap;
}
//== The gallery app
//
//##
//** gallery.html and album.html
.thumbcap {
width: 100%;
padding-bottom: 100%;
position: relative;
img {
display: block;
width:100%;
margin-bottom:-100%;
}
.glyphicon {
font-size: 50px;
margin: 0;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
-webkit-transform: translate(-50%, -50%);
}
.caption {
background-color: @gray;
background-color: rgba(0,0,0,0.5);
bottom: 0;
left: 0;
position: absolute;
width: 100%;
h5 small {
color: @text-color;
white-space: nowrap;
}
}
}
//** album.html
.imagetitle {
padding: 0;
margin-bottom: 10px;
background: none;
@media (min-width: @screen-sm-min) {
font-size: @font-size-h4;
margin-top: (@line-height-computed / 2);
margin-bottom: (@line-height-computed / 2);
}
@media (min-width: @screen-md-min) {
font-size: @font-size-h3;
margin-top: @line-height-computed;
margin-bottom: (@line-height-computed / 2);
}
}
//** image.html
html, body {
height: 100%; /* This is applied site-wide, but should not be a problem as
long pages are contained in a .container div */
}
#tkgal-container {
height: ~'calc(100% +'@navbar-margin-bottom~')';
margin-top: -@navbar-margin-bottom;
.overlay {
position: absolute;
padding: 10px 20px;
background-color: rgba(8,8,8,0.5);
@media (min-width: @screen-sm-min) {
font-size: @font-size-h4;
}
.breadcrumb {
padding: 0;
margin: 0;
background: none;
}
a {
color: @text-color;
}
}
.overlay-top{
top: 0px;
margin-top: 0px;
}
.overlay-bottom{
bottom: 0px;
width: 100%;
}
> div, .mediawrapper {
height: 100%;
position:relative;
}
img, video, audio, .lg-file-download {
display: block;
margin: auto;
position: relative;
top: 50%;
transform: translateY(-50%);
-webkit-transform: translateY(-50%);
}
img, video {
max-width: 100%;
max-height: 100%;
}
video {
padding-bottom: 40px;
@media (min-width: @screen-sm-min) {
padding-bottom: 45px;
}
}
}