source: Dev/branches/rest-dojo-ui/client/rft/css/LESS/layout.less @ 403

Last change on this file since 403 was 403, checked in by tjcschipper, 13 years ago
  • Switched to LESS for stylesheets. Most of the conversion is done, it's only (predictably) the color system that is giving trouble. Plan for next week: get rid of the inherit stuff, just use proper color classes.

-> Use only a minimal .*colorName* .bg/.text class combination that doesn't inherit. Do anything more complicated than that in a page-specific stylesheet.

File size: 4.4 KB
Line 
1*:focus {
2        //disable Chrome outline of focused elements
3        outline: none;
4}
5html, body {
6        width: 100%;
7        height: 100%;
8        background-color: @base;
9}
10
11#rft {
12        &.claro {
13                font-family: @font;
14                font-size: @font_size;
15                color: @darkest;
16
17                h1 {
18                        .noMargin;
19                        padding: 0 10px 8px 10px;
20                        float: left;
21                        clear: left;
22                        font-size: @h1Size;
23                        color: @headers;
24                        line-height: @h1Size;
25                        font-weight: normal;
26                        -webkit-user-select: none;
27                        -moz-user-select: none;
28                        -ms-user-select: none;
29                        user-select: none;
30                }
31
32                h2 {
33                        .noOffset;
34                        color: @headers;
35                        font-size: @h2Size;
36                        line-height: floor(@h2Size * 1.365);
37
38                        .rftIcon {
39                                .setIcon(32px);
40                                margin-right: 8px;
41                        }
42                }
43
44                h3 {
45                        .noMargin;
46                        font-size: @h3Size;
47                        margin-bottom: @std_offset;
48                }
49
50                h4 {
51                        font-size: @h4Size;
52                }
53
54                //Main screen layout
55                .topbar {
56
57                        overflow-y: hidden;
58
59                        .dijitMenuBar {
60                                .flatShading;
61                                background-color: transparent;
62                                float: right;
63                                clear: right;
64                                margin-top: 16px;
65                        }
66
67                        .breadcrumbs {
68                                color: @headers;
69                                .breadcrumb {
70                                        font-size: @font_size;
71                                        &.breadcrumbCurrent {
72                                                color: @text;
73                                                font-size: round(@font_size * 1.125);
74                                        }
75                                        &.breadcrumbHover {
76                                                color: @blue;
77                                        }
78                                }
79                        }
80                }
81
82                .dijitContentPane.page {
83                        .noOffset;
84                }
85
86                .dijitContentPane.content {
87                        .noOffset;
88                        display: block;
89                        clear: both;
90                        background-color: @base2;
91                        background-image: -webkit-gradient(
92                                50% 50%,
93                                circle,
94                                #666666 1%,
95                                #444444 100%
96                                );
97                        -moz-background-image: gradient(
98                                50% 50%,
99                                circle,
100                                #666666 1%,
101                                #444444 100%
102                                );
103                        -o-background-image: gradient(
104                                50% 50%,
105                                circle,
106                                #666666 1%,
107                                #444444 100%
108                                );
109                        -ms-background-image: gradient(
110                                50% 50%,
111                                circle,
112                                #666666 1%,
113                                #444444 100%
114                                );
115                        background-image: gradient(
116                                50% 50%,
117                                circle,
118                                #666666 1%,
119                                #444444 100%
120                                );
121
122                        .dijitBorderContainer {
123                                padding: @std_offset;
124                        }
125                }
126
127                //Form stuff?
128                .loginLabel {
129                        .newLine;
130                        width: 100px;
131                }
132                .loginInput {
133                        width: 150px;
134                }
135
136                .rftMultipleChoiceWidget {
137                        display: table;
138                        .row {
139                                display: table-row;
140                        }
141                        .rowBox {
142                                display: table-cell;
143                        }
144                        .rowText {
145                                display: table-cell;
146                                width: 100px;
147                        }
148                        .rowBtn {
149                                display: table-cell;
150                                width: 30px;
151                        }
152                }
153
154                //Tabs
155                .verticalTabList {
156                        width: 190px;
157                }
158
159                .dijitTab {
160                        .transition(0.2s);
161                        background-color: transparent;
162                        padding: @std_offset @std_offset_big;
163                        color: @headers;
164                        overflow: hidden;
165
166                        &.dijitTabHover {
167                                .transition (0.1s);
168                                color: @text;
169                                border-color: @text;
170                        }
171
172                        &.dijitTabActive {
173                                .transition (0.1s);
174                                color: @headers;
175                        }
176
177                        &.dijitTabChecked {
178                                .transition (0.1s);
179                                color: @text;
180                                border: 1px solid transparent;
181                        }
182                }
183
184                .dijitTabContainerLeft-tabs {
185                        border: none;
186                        padding: @std_offset;
187
188                        .dijitTab {
189                                margin: @std_offset 0;
190                                width: 200px;
191                                min-height: @tab_height;
192                                border: 1px solid @headers;
193
194                                .dijitTabContent {
195                                        min-height: @tab_height;
196                                        line-height: @tab_height;
197                                        width: 190px;
198                                }
199                        }
200                }
201                //Tab colour settings
202                &.blue .dijitTabChecked,
203                .blue .dijitTabChecked,
204                div.blue.dijitTabChecked {
205                        background-color: @blue;
206                }
207                &.green .dijitTabChecked,
208                .green .dijitTabChecked,
209                div.green.dijitTabChecked {
210                        background-color: @green;
211                }
212                &.red .dijitTabChecked,
213                .red .dijitTabChecked,
214                div.red.dijitTabChecked {
215                        background-color: @red;
216                }
217                &.orange .dijitTabChecked,
218                .orange .dijitTabChecked,
219                div.orange.dijitTabChecked {
220                        background-color: @orange;
221                }
222                &.purple .dijitTabChecked,
223                .purple .dijitTabChecked,
224                div.purple.dijitTabChecked {
225                        background-color: @purple;
226                }
227
228
229                // Inputs
230                fieldset {
231                        border: none;
232                       
233                        &.align {
234                               
235                                input,
236                                .dijitTextBox,
237                                textarea {
238                                        margin-left: 0;
239                                }
240
241                                label {
242                                        color: @text;
243                                        display: inline-block;
244                                        width: 100px !important;
245                                }
246                        }
247                }
248
249                .newline {
250                        .newLine;
251                        display: block;
252                }
253
254                .floatRight {
255                        float: right;
256                        .noMargin
257                }
258
259                .rftLineListView {
260                        max-width: 200px;
261                        max-height: 500px;
262                       
263                        .rftLineListViewContent {
264                                width: auto;
265                                overflow: auto;
266                        }
267                }
268        }
269}
270
Note: See TracBrowser for help on using the repository browser.