xref: /template/writr/css/tools.less (revision aac43d8f69437eb7ffd6c4222fd125fc2a9cbe51)
1/* =Tools
2----------------------------------------------- */
3
4@media screen {
5
6/* highlight selected tool */
7.mode_admin a.action.admin,
8.mode_login a.action.login,
9.mode_register a.action.register,
10.mode_profile a.action.profile,
11.mode_recent a.action.recent,
12.mode_index a.action.index,
13.mode_media a.action.media,
14.mode_revisions a.action.revs,
15.mode_backlink a.action.backlink,
16.mode_subscribe a.action.subscribe {
17    background-color: transparent;
18}
19
20.loggedIn{
21    .site-tools ul li:has(> a.action.media), .user-tools ul li:has(> a.action.admin), .page-tools ul li:has(> a.action.revs) {
22        display: block;
23    }
24}
25
26.page-tools {
27    a span.icon {
28        display: inline-block;
29        width: 20px;
30        height: 20px;
31        -webkit-font-smoothing: antialiased;
32        font-size: 20px;
33        line-height: 1;
34        font-family: 'Genericons';
35        text-decoration: inherit;
36        font-weight: normal;
37        font-style: normal;
38        vertical-align: top;
39    }
40
41    a           span.icon:before { content: '\f101'; }
42
43    a.edit      span.icon:before { content: '\f411'; }
44    a.create    span.icon:before { content: '\f510'; }
45    a.show      span.icon:before { content: '\f403'; }
46    a.source    span.icon:before { content: '\f462'; }
47    a.draft     span.icon:before { content: '\f416'; }
48    a.revs      span.icon:before { content: '\f303'; }
49    a.backlink  span.icon:before { content: '\f107'; }
50    a.top       span.icon:before { content: '\f435'; }
51    a.revert    span.icon:before { content: '\f467'; }
52    a.subscribe span.icon:before { content: '\f410'; }
53}
54
55.site-tools {
56    a span {
57        display: inline-block;
58        width: 20px;
59        height: 20px;
60        -webkit-font-smoothing: antialiased;
61        font-size: 20px;
62        line-height: 1;
63        font-family: 'Genericons';
64        text-decoration: inherit;
65        font-weight: normal;
66        font-style: normal;
67        vertical-align: top;
68    }
69
70    a           span:before { content: '\f101'; }
71    a.recent    span:before { content: '\f307'; }
72    a.index     span:before { content: '\f507'; }
73    a.media     span:before { content: '\f473'; }
74}
75
76.user-tools {
77    a span {
78        display: inline-block;
79        width: 20px;
80        height: 20px;
81        -webkit-font-smoothing: antialiased;
82        font-size: 20px;
83        line-height: 20px;
84        vertical-align: middle;
85        font-family: 'Genericons';
86        text-decoration: inherit;
87        font-weight: normal;
88        font-style: normal;
89    }
90
91    a           span:before { content: '\f101'; }
92    a.admin     span:before { content: '\f445'; }
93    a.login     span:before { content: '\f427'; }
94    a.logout    span:before { content: '\f470'; }
95    a.register  span:before { content: '\f425'; }
96    a.profile   span:before { content: '\f304'; }
97
98    p.user:before {
99        font-family: 'bootstrap-icons';
100        content: "\f4e1";
101        font-size: 20px;
102        padding-right: 4px;
103        line-height: 20px;
104        vertical-align: middle;
105    }
106}
107
108} /* /@media */
109
110
111@media only screen and (min-width: 960px) {
112
113.page-tools {
114    position: fixed;
115    top: 40px;
116    left: 320px;
117
118    a span {
119        width: 60px;
120        display: block;
121        text-align: center;
122    }
123    a span.icon {
124        width: 60px;
125        height: 60px;
126        background: @ini_text_neu;
127        color: @ini_background;
128        font-size: 30px;
129        line-height: 2;
130
131        -webkit-border-radius: 50%;
132        -moz-border-radius:    50%;
133        border-radius:         50%;
134        -webkit-transition: all 0.25s ease-in-out;
135        -moz-transition:    all 0.25s ease-in-out;
136        -ms-transition:     all 0.25s ease-in-out;
137        -o-transition:      all 0.25s ease-in-out;
138        transition:         all 0.25s ease-in-out;
139    }
140
141    a:hover span.icon {
142        background: @ini_background;
143        color: @ini_text_alt;
144    }
145
146    a:focus {
147        outline: none;
148
149        span.icon {
150            background-color: @ini_theme_color;
151            color: #fff;
152        }
153    }
154}
155
156.mode_revisions .page-tools a.revs span.icon,
157.mode_backlink .page-tools a.backlink span.icon,
158.mode_revert .page-tools a.revert span.icon,
159.mode_subscribe .page-tools a.subscribe span.icon {
160    background: @ini_background;
161    color: @ini_text_alt;
162    position: relative;
163
164    &:after {
165        content: '';
166        z-index: 2;
167        display: block;
168        position: absolute;
169        top: 25px;
170        right: -25px;
171        border-left: 5px solid @ini_text_alt;
172        border-top: 5px solid transparent;
173        border-bottom: 5px solid transparent;
174    }
175}
176
177} /* /@media */
178
179@media only screen and (max-width: 959px) {
180    .page-tools .a11y {
181        position: static !important;
182        left: 0 !important;
183        right: 0 !important;
184        width: auto !important;
185        height: auto !important;
186    }
187}
188