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

Last change on this file since 354 was 354, checked in by tjcschipper, 13 years ago
  • Made change to _Page.js to destroy the page's child widgets on page leave. This was causing widgets with identical names (such as "btnSave") to make regsitry throw a duplicate widget error.
  • survey.js/html now sorts loaded questions into categories and topics and creates or adds them to the proper TabPane/Selectors?. TODO: Allow for spaces in category titles.
  • Added "addQuestion()" method to Selector.js, to internalize question visualization logic.
  • Included surveyAdvanced page in run.js
  • Changes index to use proper button format, still need to figure out a way to bind content.goTo to the onclick field (since there is no index.js script being run!)
  • Various css tweaks.
File size: 11.5 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: #ffffff;
14}
15
16/* Headings */
17.claro h1 {   
18    /* Main logo */
19    float: left;
20    clear: left;
21    font-size: 48px;
22    color: #999999;
23    margin: 0 10px 8px 10px;
24    padding: 0;
25    line-height: 48px;
26    font-weight: normal !important;
27    -webkit-user-select: none;
28    -moz-user-select: none;
29}
30.claro h2 {
31    /* Content pane title */
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    display: inline-block;
275    width: 100px !important;
276}
277
278
279/* Question editor/Survey Advanced editor */
280.claro .QuestionEditor .PreviewWindow {
281    /* Nothing yet, put preview window styling options here after we've decided on a format to follow! */
282}
283.claro .dijitAccordionContainer {
284    /* No styling for now, use this for margins and other layout-related business. This class does not affect the look of the AccordionContainer currently! */
285}
286.claro .dijitAccordionInnerContainer {
287    /* This contains a title and a childWrapper. The two of these make up one "item" in the Accordion element */
288    border: none;
289    border-color: #333333;
290    background-color: #0072bc;
291    margin-bottom: 0;
292}
293.claro .dijitAccordionInnerContainer {
294    background-color: transparent;
295}
296.claro .dijitAccordionTitle, .claro .dijitAccordionTitleSelected {
297    background-color: #0072bc;
298    background-image: none;
299    color: #ffffff;
300}
301.claro .dijitAccordionTitle .rftIcon {
302    width: 16px;
303    height: 16px;
304    background-image: url('images/icons/rftIcons16b.png');
305    margin: 0 4px 2px 0;
306}
307.claro .dijitAccordionTitleSelected .rftIcon {
308    background-image: url('images/icons/rftIcons16.png');
309}
310.claro .dijitAccordionContainer.blue .dijitAccordionTitle, .claro .dijitAccordionContainer.blue .dijitAccordionTitleSelected {
311    background-color: #0072bc;
312}
313.claro .dijitAccordionContainer.blue .dijitAccordionTitleHover {
314    background-color: #0794d1;
315}
316.claro .dijitAccordionContainer.orange .dijitAccordionTitle, .claro .dijitAccordionContainer.orange .dijitAccordionTitleSelected {
317    background-color: #ff5b12;
318}
319.claro .dijitAccordionContainer.orange .dijitAccordionTitleHover {
320    background-color: #ff9140;
321}
322.claro .dijitAccordionText {
323    color: #ffffff;
324}
325.claro .dijitAccordionContainer .dijitAccordionChildWrapper {
326    background-color: #444444;
327    border: none !important;
328    padding: 0;
329    margin: 0;
330}
331.claro .dijitAccordionContainer .dijitAccordionInnerContainerSelectedHover .dijitAccordionChildWrapper,
332.claro .dijitAccordionContainer .dijitAccordionInnerContainerSelectedActive .dijitAccordionChildWrapper {
333    border: none;
334    box-shadow: none;
335    -moz-box-shadow: none;
336    -webkit-box-shadow: none;
337    /* Override the box shadow and offset on hover */
338}
339
340/* Experimental background colour inheritance */
341.claro div.blue.inheritBgColor,
342.claro .blue .inheritBgColor,
343.claro.blue .inheritBgColor {
344    background-color: #0072bc;
345}
346.claro div.green.inheritBgColor,
347.claro .green .inheritBgColor,
348.claro.green .inheritBgColor {
349    background-color: #3aa605;
350}
351.claro div.orange.inheritBgColor,
352.claro .orange .inheritBgColor,
353.claro.orange .inheritBgColor {
354    background-color: #ff5b12;
355}
356.claro div.purple.inheritBgColor,
357.claro .purple .inheritBgColor,
358.claro.purple .inheritBgColor {
359    background-color: #6529b7;
360}
361.claro div.red.inheritBgColor,
362.claro .red .inheritBgColor,
363.claro.red .inheritBgColor {
364    background-color: #8c0310;
365}
366.claro div.trans.inheritBgColor,
367.claro .trans .inheritBgColor,
368.claro.trans .inheritBgColor {
369    background-color: transparent;
370}
371.claro div.blue.inheritBgColor.light,
372.claro .blue .inheritBgColor.light,
373.claro.blue .inheritBgColor.light {
374    background-color: #0794d1;
375}
376.claro div.green.inheritBgColor.light,
377.claro .green .inheritBgColor.light,
378.claro.green .inheritBgColor.light {
379    background-color: #79ca0a;
380}
381.claro div.orange.inheritBgColor.light,
382.claro .orange .inheritBgColor.light,
383.claro.orange .inheritBgColor.light {
384    background-color: #ff9140;
385}
386.claro div.purple.inheritBgColor.light,
387.claro .purple .inheritBgColor.light,
388.claro.purple .inheritBgColor.light {
389    background-color: #993dec;
390}
391.claro div.red.inheritBgColor.light,
392.claro .red .inheritBgColor.light,
393.claro.red .inheritBgColor.light {
394    background-color: #bd0013;
395}
396
397/*TODO: Apply these classes to display elements that need to inherit the interface's object colour!
398Remove/disable other references to these colours from files like rftButtons, rftLineWithButtons, etc to make sure it works properly.
399Put these settings in a separate "colours.css" file to separate the concern of styling these objects from other layout-oriented properties.
400When 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.
401
402
403Dropdown menu on MenuBar*/
404.claro .dijitMenuPopup {
405
406}
407.claro .dijitMenuPopup .dijitMenu {
408    border: none;
409    background-color: #333333;
410    background-image: none;
411    color: #999999;   
412}
413.claro .dijitMenuPopup .dijitMenu .dijitMenuItem {
414    color: #999999;
415    background-image: none;
416    background-color: transparent;
417}
418.claro .dijitMenuPopup .dijitMenu .dijitMenuItemHover.blue,
419.claro .dijitMenuPopup .dijitMenu .dijitMenuItemSelected.blue {
420    background-color: #0072bc;
421}
422.claro .dijitMenuPopup .dijitMenu .dijitMenuItemHover.orange,
423.claro .dijitMenuPopup .dijitMenu .dijitMenuItemSelected.orange {
424    background-color: #ff5b12;
425}
426.claro .dijitMenuPopup .dijitMenu .dijitMenuItemHover.purple,
427.claro .dijitMenuPopup .dijitMenu .dijitMenuItemSelected.purple {
428    background-color: #6529b7;
429}
430.claro .dijitMenuPopup .dijitMenu .dijitMenuItemHover.green,
431.claro .dijitMenuPopup .dijitMenu .dijitMenuItemSelected.green {
432    background-color: #3aa605;
433}
434.claro .dijitMenuPopup .dijitMenu .dijitMenuItemHover.red,
435.claro .dijitMenuPopup .dijitMenu .dijitMenuItemSelected.red {
436    background-color: #8c0310;
437}
438.claro .dijitMenuPopup .dijitMenu .dijitMenuItemHover .dijitMenuItemLabel,
439.claro .dijitMenuPopup .dijitMenu .dijitMenuItemActive .dijitMenuItemLabel,
440.claro .dijitMenuPopup .dijitMenu .dijitMenuItemSelected .dijitMenuItemLabel {
441    color: #ffffff;
442}
443.claro .dijitMenuPopup .dijitMenu .dijitMenuItem .rftIcon {
444    height: 16px;
445    width: 16px;
446    margin: 0;
447    margin-right: 4px;
448    background-image: url('images/icons/rftIcons16.png');
449}
450.claro .dijitMenuPopup .dijitMenu .dijitMenuItemActive .rftIcon {
451    background-image: url('images/icons/rftIcons16b.png');
452}
453
454
455
456
457/* Alignment */
458.claro .floatRight {
459    float: right;
460    margin: 0;
461    padding: 0;
462}
Note: See TracBrowser for help on using the repository browser.