xref: /template/sprintdoc/css/base_vars.less (revision 8606ceef9fc2b70f02266daa51e2b2a29b5d8bf4)
1/**
2 * This file provides the basic vars
3 *
4 * @author Jana Deutschlaender <deutschlaender@cosmocode.de>
5 */
6
7@font_family_screen:       arial, sans-serif;
8@font_family_print:        "Times New Roman", serif;
9
10@nav_direct_background:    @ini_background;
11@nav_direct_color:         @ini_existing;
12
13@background_darker:        rgba(230,230,230, .2);
14@ini_sidebar_width:        (100 - @ini_site_width) - 4;
15
16@height-context-bar:       50px;
17
18@margin-small:             1rem;
19@margin-default:           2rem;
20@margin-big:               3.07rem;
21@nav-margin:               1.3rem;
22
23@small-spacing:            .3rem;
24@very-small-spacing:       .2rem;
25
26@grid:                     @margin-small;
27@toggle-size:              1.75rem;
28
29@transition:               ease-out .30s;
30
31@box-shadow-offset:        .1em .1em .1em rgba(153,153,153,.5); // tabinclude
32@box-shadow:               0 0 .5em rgba(153,153,153,.5); // pagetoolbox hover
33@box-shadow-colored:       0 0 .5em fade(@ini_existing, 50%);
34@box-shadow-right-bottom:  .1em .3rem .5em rgba(153,153,153,.5);
35@box-shadow-bottom:        0 .1em .5em rgba(153,153,153,.5); // qc-wrapper (breadcrumb), struct inline-editor
36
37
38/* + + +  for programmers customizing  + + + */
39
40@fix_border-radius:        3px;           // inputs, editbox (textarea), buttons, content, code, quicksearch, msg
41
42@toggle-showsidebar_width: 3.47rem;       // shown sidebar after toggle
43
44@headericons-margin-xxs:  .45rem;         // screen xxs margin-top for header icons
45
46@page_padding-top:         @margin-small; // padding-top for 'dokuwiki__content'
47@page-header_height:       2.8rem;        // minimum: 2.8rem (height for breadcrumb, page-header, page-footer)
48@meta-box_height:          (@page-header_height - @page_padding-top);
49@breadcrumb_height:        @page-header_height;
50
51@formfield_min-height:     2rem;          // min-height for input, textarea, select, keygen
52
53@code-background:          #F6F6F6; /* code, pre, samp, kbd */
54
55
56/* icons */
57@noopentasks-background:   #ECECEC; /* metabox tabs + num in icons + tabinclude */
58@noopentasks-border:       #BBB; /* metabox tabs + num in icons + code, pre, samp, kbd */
59@noopentasks-color:        #666; /* metabox tabs + num in icons + code, pre, samp, kbd */
60@wikiicons-border:         #CCC; /* usertools, breadcrumbs icons, pagetools box-hover */
61
62
63
64/* navigation left */
65@menu-margin-lg: 1.3rem;
66
67@quicksearch-button-color: @noopentasks-color; /* autosuggest, submit in quicksearch */
68@suggestion-zebra:         #EEE;
69
70
71/* edit mode */
72@highlight-odd-ini_text:  fade(@ini_background, 95%);
73@highlight-even-ini_text: fade(@ini_text, 5%);
74@color-editBox:           #252525; // editmode for tables, revision states
75
76
77//@nolinkedicon-ini_background: fade(@ini_background_site, 10%);
78//@opacity-ini_nav_menu_color:  fade(@ini_nav_menu_color, 40%);
79
80
81/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
82/* fonts */
83
84@font-size-very-small:     .73rem;
85@font-size-small:          .88rem;
86@font-size-default:        1rem;
87@font-size-big:            1.5rem;
88@font-size-bigger:         1.75rem;
89
90@line-height-default:      125%;
91@line-height-big:          135%;
92@line-height-bigger:       140%;
93
94@font-weight-bold:         800;
95@font-weight-normal:       400;
96
97@font-scale-factor:        .0769;
98
99@font-size-head6: @font-size-default;
100@font-size-head5: @font-size-default + @font-scale-factor;
101@font-size-head4: @font-size-default + (@font-scale-factor * 3);
102@font-size-head3: @font-size-default + (@font-scale-factor * 5);
103@font-size-head2: @font-size-default + (@font-scale-factor * 7);
104@font-size-head1: @font-size-default + (@font-scale-factor * 9);
105
106
107/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
108/* breakpoints */
109
110@break-min-xxs: 480;
111@break-max-xxs: (@break-min-xxs - 1);
112
113@break-min-xs: 768;
114@break-max-xs: (@break-min-xs - 1);
115
116@break-min-sm: 992;
117@break-max-sm: (@break-min-sm - 1);
118
119@break-min-md: 1024;
120@break-max-md: (@break-min-md - 1);
121
122@break-min-lg: 1200;
123@break-max-lg: (@break-min-lg - 1);
124
125@break-min-xlg: 1440;
126@break-max-xlg: (@break-min-xlg - 1);
127
128@break-min-xxlg: 1600;
129@break-max-xxlg: (@break-min-xxlg - 1);
130
131
132/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
133/* media queries for breakpoints */
134
135@screen_min-xxs: ~"only screen and (min-width: " ~"@{break-min-xxs}px)";
136@screen_max-xxs: ~"only screen and (max-width: " ~"@{break-max-xxs}px)";
137
138@screen_min-xs: ~"only screen and (min-width: " ~"@{break-min-xs}px)";
139@screen_max-xs: ~"only screen and (max-width: " ~"@{break-max-xs}px)";
140
141@screen_min-sm: ~"only screen and (min-width: " ~"@{break-min-sm}px)";
142@screen_max-sm: ~"only screen and (max-width: " ~"@{break-max-sm}px)";
143
144@screen_min-md: ~"only screen and (min-width: " ~"@{break-min-md}px)";
145@screen_max-md: ~"only screen and (max-width: " ~"@{break-max-md}px)";
146
147@screen_min-lg: ~"only screen and (min-width: " ~"@{break-min-lg}px)";
148@screen_max-lg: ~"only screen and (max-width: " ~"@{break-max-lg}px)";
149
150@screen_min-xlg: ~"only screen and (min-width: " ~"@{break-min-xlg}px)";
151@screen_max-xlg: ~"only screen and (max-width: " ~"@{break-max-xlg}px)";
152
153@screen_min-xxlg: ~"only screen and (min-width: " ~"@{break-min-xxlg}px)";
154@screen_max-xxlg: ~"only screen and (max-width: " ~"@{break-max-xxlg}px)";
155
156@screen_only-md: ~"only screen and (min-width: 800px) and (max-width: " ~"@{break-max-md}px)";
157@screen_only-xlg: ~"only screen and (min-width: " ~"@{break-min-xlg}px) and (max-width: " ~"@{break-max-xxlg}px)";
158@screen_md-xlg: ~"only screen and (min-width: " ~"@{break-min-md}px) and (max-width: " ~"@{break-max-xlg}px)";
159@screen_md-lg: ~"only screen and (min-width: " ~"@{break-min-md}px) and (max-width: " ~"@{break-max-lg}px)";
160@screen_xs-lg: ~"only screen and (min-width: " ~"@{break-min-xs}px) and (max-width: " ~"@{break-max-md}px)";
161
162
163/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
164/* col width */
165
166@c12:               100%;
167@c11:               91.66666667%;
168@c10:               83.33333333%;
169@c9:                75%;
170@c8:                66.66666667%;
171@c7:                58.33333333%;
172@c6:                50%;
173@c5:                41.66666667%;
174@c4:                33.33333333%;
175@c3:                25%;
176@c2:                16.66666667%;
177@c1:                8.33333333%;
178
179@grid-columns:      12;
180