xref: /template/writr/css/tools.less (revision d698c3acc7fb37c7d3561f8b960a336c27211c3a)
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: 'bootstrap-icons';
35        text-decoration: inherit;
36        font-weight: normal;
37        font-style: normal;
38        vertical-align: top;
39    }
40
41    a           span.icon:before { content: '\F28A'; }
42
43    a.edit      span.icon:before { content: '\F4CA'; }
44    a.create    span.icon:before { content: '\F64D'; }
45    a.show      span.icon:before { content: '\F341'; }
46    a.source    span.icon:before { content: '\F2C6'; }
47    a.draft     span.icon:before { content: '\F38B'; }
48    a.revs      span.icon:before { content: '\F292'; }
49    a.backlink  span.icon:before { content: '\F470'; }
50    a.top       span.icon:before { content: '\F278'; }
51    a.revert    span.icon:before { content: '\F117'; }
52    a.subscribe span.icon:before { content: '\F18A'; }
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: 'bootstrap-icons';
64        text-decoration: inherit;
65        font-weight: normal;
66        font-style: normal;
67        vertical-align: top;
68    }
69
70    a           span:before { content: '\F28A'; }
71    a.recent    span:before { content: '\F293'; }
72    a.index     span:before { content: '\F2EE'; }
73    a.media     span:before { content: '\F2CB'; }
74}
75
76.user-tools {
77    a i {
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: 'bootstrap-icons';
86        text-decoration: inherit;
87        font-weight: normal;
88        font-style: normal;
89    }
90
91    a           i:before { content: '\F28A'; }
92    a.admin     i:before { content: '\F3E5'; }
93    a.login     i:before { content: '\F1BE'; }
94    a.logout    i:before { content: '\F1C3'; }
95    a.register  i:before { content: '\F89A'; }
96    a.profile   i:before { content: '\F4CB'; }
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.action,
119    a.menuitem {
120        width: 60px;
121        height: 60px;
122        display: block;
123    }
124    a span {
125        width: 60px;
126        display: block;
127        text-align: center;
128    }
129    a span.icon {
130        width: 60px;
131        height: 60px;
132        background: @ini_text_neu;
133        color: @ini_background;
134        font-size: 30px;
135        line-height: 2;
136
137        -webkit-border-radius: 50%;
138        -moz-border-radius:    50%;
139        border-radius:         50%;
140        transition:         all 0.25s ease-in-out;
141    }
142
143    a:hover span.icon {
144        background: @ini_background;
145        color: @ini_text_alt;
146    }
147
148    a:focus {
149        outline: none;
150
151        span.icon {
152            background-color: @ini_theme_color;
153            color: #fff;
154        }
155    }
156}
157
158.mode_revisions .page-tools a.revs span.icon,
159.mode_backlink .page-tools a.backlink span.icon,
160.mode_revert .page-tools a.revert span.icon,
161.mode_subscribe .page-tools a.subscribe span.icon {
162    background: @ini_background;
163    color: @ini_text_alt;
164    position: relative;
165
166    &:after {
167        content: '';
168        z-index: 2;
169        display: block;
170        position: absolute;
171        top: 25px;
172        right: -25px;
173        border-left: 5px solid @ini_text_alt;
174        border-top: 5px solid transparent;
175        border-bottom: 5px solid transparent;
176    }
177}
178
179} /* /@media */
180
181@media only screen and (max-width: 959px) {
182    .page-tools .a11y {
183        position: static !important;
184        left: 0 !important;
185        right: 0 !important;
186        width: auto !important;
187        height: auto !important;
188    }
189}
190