source: Dev/branches/rest-dojo-ui/client/rft/css/layout.css @ 395

Last change on this file since 395 was 395, checked in by tjcschipper, 13 years ago
  • Fixed inheritBgColor CSS classes. Now works for buttons as well. LineWithActions? and the classes that use it still need some changes. LWA needs to get rid of colour "modifier" property and always pass "inheritBgColor (light, optionally) to the buttons". Classes that use LWA need to stop passing modifiers to them;)
  • Improved SurveyEditorPreviewItem? design, less of an eyesore, and can now use the correct button colors.
File size: 13.4 KB
Line 
1*:focus {
2    /* Disabled Chrome focus outlines! */
3    outline: none;
4}
5html,body {
6    width: 100%;
7    height: 100%;
8    font-size: 13px;
9    background-color: #333333;
10}
11.claro {
12    font-family: 'Segoe UI', Verdana, Arial, Helvetica, sans-serif;
13    color: #000000;
14}
15
16/* Headings */
17.claro h1 {   
18    float: left;
19    clear: left;
20    font-size: 48px;
21    color: #999999;
22    margin: 0 10px 8px 10px;
23    padding: 0;
24    line-height: 48px;
25    font-weight: normal !important;
26    -webkit-user-select: none;
27    -moz-user-select: none;
28}
29.claro h2 {
30    /* Content pane title */
31    color: #ffffff;
32    font-size: 22px;
33    line-height: 30px;
34    margin: 0;
35    padding: 0;
36}
37.claro h2 .rftIcon {
38    float: left;
39    width: 32px;
40    height: 32px;
41    background-image: url('images/icons/rftIcons32.png');
42    margin-right: 8px;
43}
44.claro h3 {
45    /* Section headers */
46    font-size: 18px;
47    margin: 0 0 4px 0;
48}
49.claro h4 {
50    /* Small text headers/paragraph headers */
51    font-size: 16px;
52}
53
54/* Topbar  */
55.claro .topbar {
56    overflow-y: hidden;
57}
58.claro .topbar .dijitMenuBar {
59    border: none;
60    background-color: transparent;
61    background-image: none;   
62    float: right;
63    clear: right;
64    margin-top: 16px;
65}
66
67/* Breadcrumbs */
68.claro .breadcrumbs {
69    float: left;
70    clear: left;
71    width: 100%;
72    text-align: center;
73    height: 16px;
74    line-height: 16px;
75    margin: 0 0 4px 0;
76}
77.claro .breadcrumbs .breadcrumb {
78    color: #999999;
79    font-size: 13px;
80}
81.claro .breadcrumbs .breadcrumb.breadcrumbCurrent {
82    color: #ffffff;
83    font-size: 14px;
84}
85.claro .breadcrumbs .breadcrumb.breadcrumbHover {
86    color: #0072bc;
87}
88
89/* Content */
90.claro .dijitContentPane.page {
91    padding: 0;
92}
93.claro .content.dijitContentPane {
94    display: block;
95    clear: both;
96    padding: 0;
97    background-color: #555555;
98    /* Background gradient time! */
99    background: -webkit-radial-gradient(
100        50% 50%,
101        circle,
102        #666666 1%,
103        #444444 100%
104        );
105    background: -moz-radial-gradient(
106        50% 50%,
107        circle,
108        #666666 1%,
109        #444444 100%
110        );
111}
112.claro .content.dijitContentPane .dijitBorderContainer {
113    padding: 2px;
114}
115
116/* General */
117.loginLabel {
118    float: left;
119    clear: left;
120    width: 100px;
121}
122.loginInput {
123    float: left;
124    clear: right;
125    width: 150px;
126}
127.rftMultipleChoiceWidget {
128    display: table;
129}
130.rftMultipleChoiceWidget .row {
131    display: table-row;
132}
133.rftMultipleChoiceWidget .rowBox {
134    display: table-cell;
135}
136.rftMultipleChoiceWidget .rowText {
137    display: table-cell;
138    width: 100px;
139}
140.rftMultipleChoiceWidget .rowBtn {
141    display: table-cell;
142    width: 30px;
143}
144.verticalTabList {
145    width: 190px;
146}
147
148/* Tabs */
149.claro .dijitTabContainerLeft-tabs {
150    border: none;
151    padding: 4px 16px 4px 4px;
152}
153.claro .dijitTabContainerLeft-tabs .dijitTab {
154    margin: 4px 0;
155    width: 200px;
156    min-height: 30px;
157}
158.claro .dijitTab {
159    padding: 2px 8px;
160    color: #999999;
161    border: 1px solid #999999;
162    white-space: normal;
163    overflow: hidden;
164    transition: all 0.3s;
165    -moz-transition: all 0.3s;
166    -webkit-transition: all 0.3s;
167    -o-transition: all 0.3s;
168}
169.claro .dijitTabContainerLeft-tabs .dijitTab .dijitTabContent {
170    height: 48px;
171    line-height: 24px;
172    width: 190px;
173}
174.claro .dijitTab.dijitTabHover {
175    color: #ffffff;
176    border-color: #ffffff;
177    transition: all 0.1s;
178    -moz-transition: all 0.1s;
179    -webkit-transition: all 0.1s;
180    -o-transition: all 0.1s;
181}
182.claro .dijitTab.dijitTabActive {
183    color: #0072bc;
184    transition: all 0.1s;
185    -moz-transition: all 0.1s;
186    -webkit-transition: all 0.1s;
187    -o-transition: all 0.1s;
188}
189.claro .dijitTab.dijitTabChecked {
190    color: #ffffff;
191    border: 1px solid transparent;
192    transition: all 0.1s;
193    -moz-transition: all 0.1s;
194    -webkit-transition: all 0.1s;
195    -o-transition: all 0.1s;
196}
197.claro .dijitTabContainer.blue .dijitTab.dijitTabChecked {
198    background-color: #0072bc;
199}
200.claro .dijitTabContainer.orange .dijitTab.dijitTabChecked {
201    background-color: #ff5b12;
202}
203.claro .dijitTabContainer.red .dijitTab.dijitTabChecked {
204    background-color: #8c0310;
205}
206.claro .dijitTabContainer.purple .dijitTab.dijitTabChecked {
207    background-color: #6529b7;
208}
209.claro .dijitTabContainer.green .dijitTab.dijitTabChecked {
210    background-color: #3aa605;
211}
212.claro .dijitTabContainer.blue .dijitTab.dijitTabActive {
213    color: #0072bc;
214}
215.claro .dijitTabContainer.orange .dijitTab.dijitTabActive {
216    color: #ff5b12;
217}
218.claro .dijitTabContainer.red .dijitTab.dijitTabActive {
219    color: #8c0310;
220}
221.claro .dijitTabContainer.purple .dijitTab.dijitTabActive {
222    color: #6529b7;
223}
224.claro .dijitTabContainer.green .dijitTab.dijitTabActive {
225    color: #3aa605;
226}
227
228/* Index Menu */
229.claro .rftIndexMenuBlock {
230    width: 400px;
231    height: 400px;
232    background: #444444;
233    float: left;
234    margin: 16px;
235    overflow: hidden;
236}
237.claro .rftIndexMenuMask {
238    height: 400px;
239    width: 400px;
240    background: #444444;
241    color: #999999;
242    margin-top: 0;
243}
244.claro .rftIndexMenuBlock:hover .rftIndexMenuMask {
245    margin-top: -400px;
246}
247.claro .rftIndexMenuMask .label {
248    color: #999999;
249    font-size: 32px;
250    line-height: 28px;
251    height: 32px;
252    margin: 184px 0;
253    float: left;
254}
255.claro .rftIndexMenuMask .rftIcon {
256    width: 32px;
257    height: 32px;
258    background-image: url('images/icons/rftIcons32.png');
259    margin: 184px 8px 0 8px;
260    float: left;
261}
262
263
264/* Inputs */
265fieldset {
266    border: none;
267}
268fieldset.align input,
269fieldset.align .dijitTextBox,
270fieldset.align textarea {
271    margin-left: 0;
272}
273fieldset.align label {
274    color: #ffffff;
275    display: inline-block;
276    width: 100px !important;
277}
278
279.claro .newline {
280    display: block;
281}
282
283/* Question editor/Survey Advanced editor */
284.claro .QuestionEditor .PreviewWindow {
285    /* Nothing yet, put preview window styling options here after we've decided on a format to follow! */
286}
287.claro .dijitAccordionContainer {
288    /* No styling for now, use this for margins and other layout-related business. This class does not affect the look of the AccordionContainer currently! */
289}
290.claro .dijitAccordionInnerContainer {
291    /* This contains a title and a childWrapper. The two of these make up one "item" in the Accordion element */
292    border: none;
293    border-color: #333333;
294    background-color: #0072bc;
295    margin-bottom: 0;
296}
297.claro .dijitAccordionInnerContainer {
298    background-color: transparent;
299}
300.claro .dijitAccordionTitle, .claro .dijitAccordionTitleSelected {
301    background-color: #0072bc;
302    background-image: none;
303    color: #ffffff;
304}
305.claro .dijitAccordionTitle .rftIcon {
306    width: 16px;
307    height: 16px;
308    background-image: url('images/icons/rftIcons16b.png');
309    margin: 0 4px 2px 0;
310}
311.claro .dijitAccordionTitleSelected .rftIcon {
312    background-image: url('images/icons/rftIcons16.png');
313}
314.claro .dijitAccordionContainer.blue .dijitAccordionTitle, .claro .dijitAccordionContainer.blue .dijitAccordionTitleSelected {
315    background-color: #0072bc;
316}
317.claro .dijitAccordionContainer.blue .dijitAccordionTitleHover {
318    background-color: #0794d1;
319}
320.claro .dijitAccordionContainer.orange .dijitAccordionTitle, .claro .dijitAccordionContainer.orange .dijitAccordionTitleSelected {
321    background-color: #ff5b12;
322}
323.claro .dijitAccordionContainer.orange .dijitAccordionTitleHover {
324    background-color: #ff9140;
325}
326.claro .dijitAccordionText {
327    color: #ffffff;
328}
329.claro .dijitAccordionContainer .dijitAccordionChildWrapper {
330    background-color: #444444;
331    border: none !important;
332    padding: 0;
333    margin: 0;
334}
335.claro .dijitAccordionContainer .dijitAccordionInnerContainerSelectedHover .dijitAccordionChildWrapper,
336.claro .dijitAccordionContainer .dijitAccordionInnerContainerSelectedActive .dijitAccordionChildWrapper {
337    border: none;
338    box-shadow: none;
339    -moz-box-shadow: none;
340    -webkit-box-shadow: none;
341    /* Override the box shadow and offset on hover */
342}
343
344/* DojoX.TitleGroup, replacement of AccordionContainer in Question Editor */
345.claro .dojoxTitleGroup {
346    /* No styling yet */
347}
348.claro .dojoxTitleGroup .dijitTitlePane {
349    margin: 0;
350}
351.claro .orange .dojoxTitleGroup .dijitTitlePaneTitle {
352    background-color: #ff5b12;
353    background-image: none;
354    border: none;
355    padding: 0 4px;
356    height: 24px;
357    margin: 0;
358}
359.claro .orange .dojoxTitleGroup .dijitTitlePaneTitleHover,
360.claro .ornage .dojoxTitleGroup .dijitTitlePanelTitleFocused {
361    background-color: #ff9140;
362}
363.claro .dojoxTitleGroup .dijitTitlePaneTextNode {
364    color: #ffffff;
365    font-size: 13px;
366    line-height: 24px;
367}
368.claro .dojoxTitleGroup .dijitTitlePaneContentOuter {
369    background-color: #444;
370    border: none;
371}
372.claro .dojoxTitleGroup .dijitTitlePaneTitleFocus {
373    margin: 0;
374}
375
376/* Experimental background colour inheritance */
377.claro div.blue.inheritBgColor,
378.claro span.blue.inheritBgColor,
379.claro .blue .inheritBgColor {
380    background-color: #0072bc;
381    color: #ffffff;
382}
383.claro div.green.inheritBgColor,
384.claro span.green.inheritBgColor,
385.claro .green .inheritBgColor {
386    background-color: #3aa605;
387    color: #ffffff;
388}
389.claro div.orange.inheritBgColor,
390.claro span.orange.inheritBgColor,
391.claro .orange .inheritBgColor {
392    background-color: #ff5b12;
393    color: #ffffff;
394}
395.claro div.purple.inheritBgColor,
396.claro span.purple.inheritBgColor,
397.claro .purple .inheritBgColor {
398    background-color: #6529b7;
399    color: #ffffff;
400}
401.claro div.red.inheritBgColor,
402.claro span.red.inheritBgColor,
403.claro .red .inheritBgColor {
404    background-color: #8c0310;
405    color: #ffffff;
406}
407.claro div.trans.inheritBgColor,
408.claro span.trans.inheritBgColor,
409.claro .trans .inheritBgColor {
410    background-color: transparent;
411    color: #ffffff;
412}
413.claro div.blue.inheritBgColor.light,
414.claro span.blue.inheritBgColor.light,
415.claro .blue .inheritBgColor.light {
416    background-color: #0794d1;
417    color: #ffffff;
418}
419.claro div.green.inheritBgColor.light,
420.claro span.green.inheritBgColor.light,
421.claro .green .inheritBgColor.light {
422    background-color: #79ca0a;
423    color: #ffffff;
424}
425.claro div.orange.inheritBgColor.light,
426.claro span.orange.inheritBgColor.light,
427.claro .orange .inheritBgColor.light {
428    background-color: #ff9140;
429    color: #ffffff;
430}
431.claro div.purple.inheritBgColor.light,
432.claro span.purple.inheritBgColor.light,
433.claro .purple .inheritBgColor.light {
434    background-color: #993dec;
435    color: #ffffff;
436}
437.claro div.red.inheritBgColor.light,
438.claro span.red.inheritBgColor.light,
439.claro .red .inheritBgColor.light {
440    background-color: #bd0013;
441    color: #ffffff;
442}
443
444/*TODO: Apply these classes to display elements that need to inherit the interface's object colour!
445Remove/disable other references to these colours from files like rftButtons, rftLineWithButtons, etc to make sure it works properly.
446Put these settings in a separate "colours.css" file to separate the concern of styling these objects from other layout-oriented properties.
447When we add things like highlightColours, borders, etc, the list could become quite long, especially if more colours are added to the colour scheme in time.
448
449
450Dropdown menu on MenuBar*/
451.claro .dijitMenuPopup {
452
453}
454.claro .dijitMenuPopup .dijitMenu {
455    border: none;
456    background-color: #333333;
457    background-image: none;
458    color: #999999;   
459}
460.claro .dijitMenuPopup .dijitMenu .dijitMenuItem {
461    color: #999999;
462    background-image: none;
463    background-color: transparent;
464}
465.claro .dijitMenuPopup .dijitMenu .dijitMenuItemHover.blue,
466.claro .dijitMenuPopup .dijitMenu .dijitMenuItemSelected.blue {
467    background-color: #0072bc;
468}
469.claro .dijitMenuPopup .dijitMenu .dijitMenuItemHover.orange,
470.claro .dijitMenuPopup .dijitMenu .dijitMenuItemSelected.orange {
471    background-color: #ff5b12;
472}
473.claro .dijitMenuPopup .dijitMenu .dijitMenuItemHover.purple,
474.claro .dijitMenuPopup .dijitMenu .dijitMenuItemSelected.purple {
475    background-color: #6529b7;
476}
477.claro .dijitMenuPopup .dijitMenu .dijitMenuItemHover.green,
478.claro .dijitMenuPopup .dijitMenu .dijitMenuItemSelected.green {
479    background-color: #3aa605;
480}
481.claro .dijitMenuPopup .dijitMenu .dijitMenuItemHover.red,
482.claro .dijitMenuPopup .dijitMenu .dijitMenuItemSelected.red {
483    background-color: #8c0310;
484}
485.claro .dijitMenuPopup .dijitMenu .dijitMenuItemHover .dijitMenuItemLabel,
486.claro .dijitMenuPopup .dijitMenu .dijitMenuItemActive .dijitMenuItemLabel,
487.claro .dijitMenuPopup .dijitMenu .dijitMenuItemSelected .dijitMenuItemLabel {
488    color: #ffffff;
489}
490.claro .dijitMenuPopup .dijitMenu .dijitMenuItem .rftIcon {
491    height: 16px;
492    width: 16px;
493    margin: 0;
494    margin-right: 4px;
495    background-image: url('images/icons/rftIcons16.png');
496}
497.claro .dijitMenuPopup .dijitMenu .dijitMenuItemActive .rftIcon {
498    background-image: url('images/icons/rftIcons16b.png');
499}
500
501
502/* Alignment */
503.claro .floatRight {
504    float: right;
505    margin: 0;
506    padding: 0;
507}
508
509
510/* SurveyListView */
511.claro .rftSurveyListView {
512}
513.claro .rftSurveyListView .rftSurveyListViewContent {
514    height: 300px;
515    background: #444444;
516    overflow: auto;
517}
518.claro .rftSurveyListView .rftLineWithButtons .rftLineWithButtonsTitle {
519    max-width: 200px;
520    overflow: hidden;
521}
522
523/* AccountListView */
524.claro .rftAccountListView .rftLineWithButtons .rftLineWithButtonsTitle {
525    max-width: 400px;
526    overflow: auto;
527}
528/* Generic list with lines */
529.claro .rftLineListView {
530    max-width: 200px;
531    max-height: 500px;
532}
533.claro .rftLineListView .rftLineListViewContent {
534    max-width: 200px;
535    overflow: auto;
536}
537
538
539/* Two column tables */
540.labelsAndValues-labelCell {
541  padding-left: 5px;
542}
543
544.labelsAndValues-valueCell {
545  padding-left: 20px;
546}
Note: See TracBrowser for help on using the repository browser.