Debian Codegraph @

dijit-themes/flat/dijit/TitlePane.styl

raw
1 /* TitlePane and Fieldset
2 *
3 * Styling TitlePane means styling the TitlePane title and its content container (dijitTitlePane)
4 *
5 * TitlePane title:
6 * 1. TitlePane title (default styling):
7 * .dijitTitlePaneTitle - TitlePane's title div style: background-color, border
8 *
9 * 2. hovered TitlePane title (ie, mouse hover on a title bar)
10 * .dijitTitlePaneTitleHover - styles when mouse hover on the title div
11 *
12 * 3. active TitlePane title (ie, mouse down on a title bar)
13 * .dijitTitlePaneTitleActive - styles when mouse down on the title div
14 *
15 *
16 * TitlePane Content Container:
17 * 1. outer/inner container:
18 * .dijitTitlePaneContentOuter / dijitTitlePaneContentInner - styles for the content outer div
19 */
20
21 @import 'dijit_variables';
22
23 .{$theme-name} {
24
25 .dijitTitlePaneTitle {
26 button-style();
27 if($titlepane-border-radius && $titlepane-border-radius >= 0) {
28 border-radius: $titlepane-border-radius $titlepane-border-radius 0 0;
29 }
30 }
31
32 .dijitTitlePaneTitleHover, .dijitFieldsetTitleHover {
33 button-hover-style();
34 }
35
36 .dijitTitlePaneTitleActive, .dijitFieldsetTitleActive {
37 button-active-style();
38 }
39
40 //.dijitTitlePaneTitleFocus {
41 //}
42
43 .dijitFieldset {
44 if($titlepane-border-radius && $titlepane-border-radius >= 0) {
45 border-radius: $titlepane-border-radius $titlepane-border-radius 0 0;
46 }
47
48 .dijitArrowNodeInner {
49 display: none;
50 }
51
52 .dijitFieldsetTitleClosed .dijitArrowNode:before {
53 content: $icon-expand;
54 }
55 }
56
57 .dijitTitlePane, .dijitFieldset {
58 .dijitArrowNode {
59 _icon-core-style();
60 font-size: $icon-expand-collapse-size;
61 text-align: center;
62 &:before {
63 content: $icon-collapse;
64 }
65 }
66
67 .dijitClosed {
68 if($titlepane-has-border-radius) {
69 border-radius: $titlepane-border-radius;
70 } else {
71 border-radius: 0;
72 }
73 .dijitArrowNode:before {
74 content: $icon-expand;
75 }
76 }
77 }
78
79 .dijitTitlePaneContentOuter {
80 background-color: $titlepane-content-background-color;
81 border: 1px solid $titlepane-content-border-color;
82 border-top: none;
83 if($titlepane-border-radius && $titlepane-border-radius >= 0) {
84 border-radius: 0 0 $titlepane-border-radius $titlepane-border-radius;
85 }
86 }
87
88 .dijitFieldset {
89 background-color: $titlepane-content-background-color;
90 border: 1px solid $titlepane-content-border-color;
91 if($titlepane-border-radius && $titlepane-border-radius >= 0) {
92 border-radius: $titlepane-border-radius;
93 }
94 }
95
96 .dijitTitlePaneContentInner, .dijitFieldsetContentInner {
97 padding: $titlepane-content-padding;
98 }
99
100 .dijitTitlePaneTextNode, .dijitFieldsetLegendNode {
101 margin-left: $padding*2;
102 margin-right: $padding*2;
103 vertical-align:text-top;
104 }
105
106 .dijitFieldsetLegendNode {
107 cursor: default;
108 }
109
110 }