1 /* ------------------------------------------------------------- */
2 /* BUTTONS (buttons.less) */
3 /* ------------------------------------------------------------- */
5 // ----------------------------------------------------------------------------
7 // BUTTONS (FORM BUTTONS & LINKS AS BUTTONS)
9 // ----------------------------------------------------------------------------
10 // DESCRIPTION: all kind of buttons
18 // - Action STRONG (submission to server page)
19 // - Action SOFT/NEUTRAL (no submission to server page)
22 // - LINK AND LABELS DESIGNED AS BUTTONS
23 // - BUTTONS CONTAINER
25 // ----------------------------------------------------------------------------
29 // --------------------------------------
31 // --------------------------------------
32 // At first we tried to nest the buttons within the form element,
33 // but it is not possible because some forms do not have a form element
34 // (e.g. print dialog)
36 // A lot of buttons are outside of a form, so let be this tag deactivated
47 &.clear { clear: left; }
50 &.wi-verysmall { min-width: @input-wi-verysmall ; }
51 &.wi-small { min-width: @input-wi-small ; }
52 &.wi-mediumsmall { min-width: @input-wi-mediumsmall ; }
53 &.wi-normal { min-width: @input-wi-normal ; }
54 &.wi-lightwide { width: @input-wi-lightwide ; }
55 &.wi-wide { width: @input-wi-wide ; }
56 &.wi-wider { width: @input-wi-wider ; }
57 &.wi-verywide { width: @input-wi-verywide ; }
60 padding: 0.16em 0.2em 0.1em 0.2em;
61 margin: -0.3em 0 0 0.2em;
63 display: inline-block;
69 font-size: 8pt !important;
70 padding: 0.0em 0.3em 0.1em 0.3em;
71 display: inline-block;
76 } // /input[type="button etc."]
81 background: none !important;
83 display: inline-block;
84 img { vertical-align: middle ; }
87 // -------------------
88 // Action STRONG (submission to server page)
91 input[type="button"].button,
92 button[type="submit"],
93 button[type="button"] {
94 color: @button-strong-color ;
95 background-color: @button-strong-bg;
96 border: @button-strong-border ;
98 color: @button-strong-hover-color ;
99 background-color: @button-strong-hover-bg;
100 border: @button-strong-hover-border ;
104 color: @button-strong-active-color ;
105 background-color: @button-strong-active-bg;
106 border: @button-strong-active-border ;
110 // -------------------
111 // Action SOFT/NEUTRAL (no submission to server page)
112 input[type="button"].neutral,
113 input[type="submit"].neutral,
115 input[type="reset"].neutral,
117 button[type="reset"] {
118 color: @button-neutral-color ;
119 background-color: @button-neutral-bg;
120 border: @button-neutral-border ;
122 color: @button-neutral-hover-color ;
123 background-color: @button-neutral-hover-bg;
124 border: @button-neutral-hover-border ;
128 color: @button-neutral-active-color;
129 background-color: @button-neutral-active-bg;
130 border: @button-neutral-active-border ;
133 // Toggle-Button (e.g. for position details in tables)
135 padding-right: 1.2em ;
136 // ::after does not work in buttons
137 // input#cb_show_details {
139 // content: "▸" !important ;
142 // input#cb_hide_details::after {
143 // content: "▾" !important ;
147 } // /input[type="*"].neutral
150 input[type="button"]{
152 clear: both !important;
166 // --------------------------------------
167 // LINKS DESIGNED AS BUTTONS
168 // They may be placed inside or outside a form
169 // --------------------------------------
175 &.below { clear: both !important; }
178 .mx-button-standard ;
179 .mx-button-standard-hover-focus ;
181 // NEUTRAL (no Submission)
185 .mx-button-neutral ; // Mixin
187 .mx-button-neutral-hover-focus ; // Mixin
190 &.wi-smallest { width: @input-wi-smallest ; }
191 &.wi-verysmall { width: @input-wi-verysmall ; }
192 &.wi-small { width: @input-wi-small ; }
193 &.wi-mediumsmall { width: @input-wi-mediumsmall ; }
194 &.wi-normal { width: @input-wi-normal ; }
195 &.wi-lightwide { width: @input-wi-lightwide ; }
196 &.wi-wide { width: @input-wi-wide ; }
197 &.wi-wider { min-width: @input-wi-wider ; }
198 &.wi-verywide { min-width: @input-wi-verywide ; }
199 // Tiny button (one letter button)
201 display: inline-block;
203 padding: 0.16em 0.2em 0.1em 0.2em;
204 margin: -0.3em 0 0 0.2em;
208 // Toggle (for filters e.g.)
210 background-color: @controlpanel-bg-color !important ;
214 padding-right: 1.0em;
218 padding-right: 1.0em;
223 border-bottom-left-radius: 0px ;
224 border-bottom-right-radius: 0px ;
226 border-top: @controlpanel-border !important ;
227 border-right: @controlpanel-border !important ;
228 border-bottom: 0 !important;
229 border-left: @controlpanel-border !important ;
233 background-color: @button-neutral-bg !important;
234 border: @controlpanel-border !important ;
235 color: @button-neutral-color;
236 text-decoration: none;
244 // --------------------------------------
245 // LABELS DESIGNED AS BUTTONS
246 // They may be placed inside or outside a form
247 // --------------------------------------
248 #content label.button {
250 .mx-button ; // Mixin
253 .mx-button-standard ; // Mixin
255 .mx-button-standard-hover-focus ; // Mixin
257 // NEUTRAL (no Submission)
259 .mx-button-neutral ; // Mixin
260 .mx-button-neutral-hover-focus ; // Mixin
267 // --------------------------------------
269 // --------------------------------------
270 // Container fuer Buttons
275 // PENDENT: anschauen, steht fuer Anzeige von Positionsdetails in Listen-Tabellen
277 margin: 0 0 -1.7em 26.0em;
279 label.button.neutral,
281 border-bottom-left-radius: 0 !important;
282 border-bottom-right-radius: 0 !important;
283 padding-bottom: 0.6em !important;
284 margin-bottom: -0.8em !important;
285 background: none !important;
286 border-bottom: none !important;
298 .wrapper * .buttons {
299 padding: 1.0em 1.0em 1.0em 0 !important;
304 // --------------------------------------
306 // --------------------------------------
308 display: inline-block ;
309 // Info or details button
311 // Delete (cross) button
313 // Edit (pencil) button
315 // Map (globus / planet earth) button
320 .button-image { vertical-align: middle; }
322 input[type="button"].button-image{
324 background-image: url("image/cross2.png");
325 background-repeat: no-repeat;
326 background-position: 0 0;
328 background-color: transparent;