aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default/css/shaarli.css
blob: 4ec976b17a3e0968306327de404fbab93bcf166c (plain) (blame)
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
/**
 * General
 */
body {

}

.strong {
    font-weight: bold;
}

.clear {
    clear: both;
}

/**
 * Extends Pure grids responsive to hide items.
 * Use xx-0 to hide an item on xx screen.
 * Display it at any level with xx-visible.
 */
.pure-u-0 { display: none !important; }
@media screen and (min-width: 35.5em) {
    .pure-u-sm-0 { display: none !important; }
    .pure-u-sm-visible { display: inherit !important; }
}
@media screen and (min-width: 48em) {
    .pure-u-md-0 { display: none !important; }
    .pure-u-md-visible { display: inherit !important; }
}
@media screen and (min-width: 64em) {
    .pure-u-lg-0 { display: none !important; }
    .pure-u-lg-visible { display: inherit !important; }
}
@media screen and (min-width: 80em) {
    .pure-u-xl-0 { display: none !important; }
    .pure-u-xl-visible { display: inherit !important; }
}

/**
 * MENU
 **/
.shaarli-menu {
    position: fixed;
    top: 0;
    width: 100%;
    background: #1b926c;
    -webkit-font-smoothing: antialiased;
    /* Hack to transition with auto height: http://stackoverflow.com/a/8331169/1484919 */
    max-height: 2.1em;
    transition: max-height 0.5s;
    overflow: hidden;
    z-index: 999;
}

.shaarli-menu.open {
    max-height: 500px;
    transition: max-height 0.75s;
}

.pure-menu-selected {
    background: #1A694C;
}

.pure-menu-link,
.pure-menu-link:visited,
.pure-menu-selected .pure-menu-link,
.pure-menu-selected .pure-menu-link:visited {
    color: #b0ddce;
}

.pure-menu-link:hover,
.pure-menu-selected .pure-menu-link:hover {
    color: #d1fff0;
    background: transparent;
}

.menu-toggle {
    width: 34px;
    height: 34px;
    position: absolute;
    top: 0;
    right: 0;
    display: none;
}

.menu-toggle .bar {
    background-color: #b0ddce;
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 100px;
    position: absolute;
    top: 18px;
    right: 7px;
    transition: all 0.5s;
}

.menu-toggle .bar:first-child {
    transform: translateY(-6px);
}

.menu-toggle.x .bar {
    transform: rotate(45deg);
}

.menu-toggle.x .bar:first-child {
    transform: rotate(-45deg);
}

@media screen and (max-width: 64em) {
    .menu-toggle {
        display: block;
    }
}

/**
 * Header
 */
#header {
    width: 100%;
    height: 150px;
    background: url(../img/noise.png), #1fa67a url(../img/logo2.png) no-repeat fixed 10px 2.5em;
}

#header h1 {
    position: fixed;
    float: left;
    margin: 45px 0 0 125px;
    width: 55%;
    height: 100px;
}

#header h1 a, #header h1 a:visited {
    /* https://css-tricks.com/centering-css-complete-guide/#vertical-inline-multiple */
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    justify-content: center;

    overflow: hidden;
    height: 100px;
    color: #b0ddce;
    text-decoration: none;
    z-index: 1;

    /* TODO: font? */
}

#header h1 a:hover {
    color: #d1fff0;
}

#linkcount {
    /* position: fixed; */
    position: absolute;
    top: 40px;
    right: 10px;
    color: #b0ddce;
    font-size: 0.8em;
}

#search {
    /**
     * Can't make it work with awesomplete list z-index. Any idea?
     * position: fixed;
     */
    position: absolute;
    top: 60px;
    right: 10px;
    width: 30%;
    text-align: right;
}

#search input[type="text"] {
    margin: 0 0 5px 0;
    padding: 5px 5px 3px 15px;
    height: 20px;
    width: 140px;
    transition: width .5s ease;
    background: #1b926c;
    border: medium none currentColor;
    border-radius: 25px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.078), 0 1px 4px rgba(0, 0, 0, 0.298) inset;
    color: #b0ddce;
}

#search button {
    background: transparent;
    border: none;
    color: #b0ddce;
}

#search button:hover {
    color: #fff;
}

/**
 * CONTENT
 */
#content {
    position: relative;
    box-shadow: 0 -2px 1em #797979;
    z-index: 2;
    background: url(../img/noise.png) #979797;
}