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:
2.2 KB
|
Line | |
---|
1 | #rft {
|
---|
2 | &.claro {
|
---|
3 | //Index menu
|
---|
4 | .rftIndexMenuBlock {
|
---|
5 | width: @mm_blockwidth;
|
---|
6 | height: @mm_blockheight;
|
---|
7 | background: @base1;
|
---|
8 | float: left;
|
---|
9 | margin: @mm_blockmargin;
|
---|
10 | overflow: hidden;
|
---|
11 |
|
---|
12 | &:hover .rftIndexMenuMask {
|
---|
13 | margin-top: -@mm_blockheight;
|
---|
14 | }
|
---|
15 | }
|
---|
16 | .rftIndexMenuMask {
|
---|
17 | width: @mm_blockwidth;
|
---|
18 | height: @mm_blockheight;
|
---|
19 | background: @base1;
|
---|
20 | color: @headers;
|
---|
21 | margin-top: 0;
|
---|
22 |
|
---|
23 | .label {
|
---|
24 | color: @headers;
|
---|
25 | font-size: @mm_font_size;
|
---|
26 | height: @mm_font_size;
|
---|
27 | line-height: @mm_font_size;
|
---|
28 | margin-top: (@mm_blockheight - @mm_font_size) / 2;
|
---|
29 | float: left;
|
---|
30 | }
|
---|
31 |
|
---|
32 | .rftIcon {
|
---|
33 | .setIcon(32px);
|
---|
34 | float: left;
|
---|
35 | margin: ((@mm_blockheight - @mm_font_size)/2) 8px 0 8px;
|
---|
36 | }
|
---|
37 | }
|
---|
38 |
|
---|
39 | //Topbar dropdown menu
|
---|
40 | .dijitMenuPopup {
|
---|
41 | .dijitMenu {
|
---|
42 |
|
---|
43 | .flatShading;
|
---|
44 | color: @headers;
|
---|
45 | border: none;
|
---|
46 |
|
---|
47 | .dijitMenuItem {
|
---|
48 | color: @headers;
|
---|
49 | .flatShading;
|
---|
50 | background-color: transparent;
|
---|
51 |
|
---|
52 | &.dijitMenuItemHover,
|
---|
53 | &.dijitMenuItemActive,
|
---|
54 | &.dijitMenuItemSelected {
|
---|
55 | .dijitMenuItemLabel {
|
---|
56 | color: @text;
|
---|
57 | }
|
---|
58 | }
|
---|
59 |
|
---|
60 | .rftIcon {
|
---|
61 | .setIcon (16px);
|
---|
62 | .noMargin;
|
---|
63 | margin-right: @std_offset_big;
|
---|
64 | }
|
---|
65 |
|
---|
66 | &.dijitMenuItemActive .rftIcon {
|
---|
67 | .setIcon(16px, black);
|
---|
68 | }
|
---|
69 | }
|
---|
70 |
|
---|
71 | }
|
---|
72 | }
|
---|
73 |
|
---|
74 |
|
---|
75 | //Main menu
|
---|
76 | .dijitMenuBar .rftMainMenuButton {
|
---|
77 | .flatShading;
|
---|
78 | .transition (0.1s);
|
---|
79 | border: none;
|
---|
80 | height: @button_mainmenu_height;
|
---|
81 | width: auto;
|
---|
82 | background: transparent;
|
---|
83 | color: @headers;
|
---|
84 | text-align: center;
|
---|
85 | font-size: @button_mainmenu_font_size;
|
---|
86 | line-height: @button_mainmenu_height;
|
---|
87 | padding: 0 @button_mainmenu_padding;
|
---|
88 | margin: 0 @button_mainmenu_spacing;
|
---|
89 |
|
---|
90 | &.dijitMenuItemHover,
|
---|
91 | &.dijitMenuitemActive {
|
---|
92 | .transition (0.1s);
|
---|
93 | }
|
---|
94 |
|
---|
95 | &.dijitMenuItemHover {
|
---|
96 | color: @text;
|
---|
97 | font-size: @button_mainmenu_font_size + @button_mainmenu_font_grow;
|
---|
98 | }
|
---|
99 |
|
---|
100 | &.dijitMenuItemActive {
|
---|
101 | color: @blue;
|
---|
102 | font-size: @button_mainmenu_font_size + @button_mainmenu_font_grow;
|
---|
103 | }
|
---|
104 | &.dijitMenuItemSelected {
|
---|
105 | font-size: @button_mainmenu_font_size + @button_mainmenu_font_grow;
|
---|
106 | color: @text;
|
---|
107 | }
|
---|
108 | }
|
---|
109 | }
|
---|
110 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.