cncjs
149 строк · 3.2 Кб
1@import './theme';
2
3.widget {
4background-color: #FFF;
5margin-bottom: 10px;
6
7&.widget-borderless {
8.widget-header,
9.widget-content,
10.widget-footer {
11border: 0;
12}
13.widget-header + .widget-content,
14.widget-header + .widget-footer,
15.widget-content + .widget-footer {
16border-top: 1px solid #ccc;
17}
18}
19
20&.widget-fullscreen {
21position: fixed;
22top: 50px; // navbar
23left: 60px; // sidebar
24right: 0;
25bottom: 0;
26margin: 0;
27z-index: 1000;
28
29.widget-sortable {
30display: none;
31}
32}
33&.widget-fullscreen {
34.widget-content {
35position: absolute;
36top: 0;
37right: 0;
38bottom: 0;
39left: 0;
40}
41.widget-header + .widget-content {
42position: absolute;
43top: 34px; // .widget-header height
44bottom: 0;
45left: 0;
46right: 0;
47}
48}
49
50.widget-header {
51clearfix();
52background-color: #f6f7f8;
53border: 1px solid #ccc;
54position: relative;
55}
56.widget-header-fixed {
57cursor: default;
58}
59
60.widget-sortable {
61display: inline-block;
62cursor: move;
63
64> a {
65cursor: move;
66}
67}
68
69.widget-title {
70font-size: 14px;
71font-weight: 400;
72line-height: 32px;
73display: inline-block;
74vertical-align: middle;
75margin-top: 0;
76margin-bottom: 0;
77padding: 0 10px;
78
79// Truncate string with ellipsis
80text-overflow: ellipsis;
81overflow: hidden;
82white-space: nowrap;
83width: 100%;
84max-width: 100%;
85}
86
87.widget-content,
88.widget-footer {
89border: 1px solid #CCC;
90border-top: none;
91}
92
93.widget-button {
94text-decoration: none;
95font-size: 14px;
96text-align: center;
97display: inline-block;
98line-height: 32px;
99padding: 0;
100margin: 0;
101}
102
103.widget-controls {
104position: absolute;
105top: 0;
106right: 0;
107cursor: auto;
108width: auto;
109
110.widget-button {
111min-width: 30px;
112height: 32px;
113float: left;
114position: relative;
115font-size: 14px;
116font-family: Arial, Helvetica, sans-serif;
117border-left: 1px solid rgba(0, 0, 0, .09);
118margin: 0;
119text-align: center;
120
121&.disabled {
122color: #bbb;
123cursor: not-allowed;
124}
125
126&.disabled:hover {
127background-color: inherit;
128}
129&:hover {
130background-color: rgba(0, 0, 0, .05);
131}
132
133&.inverted {
134color: #fff;
135background-color: #404040;
136}
137&.inverted:hover {
138background-color: #222;
139}
140&.inverted.disabled {
141opacity: .4;
142}
143
144&:first-child {
145padding-left: 0;
146}
147}
148}
149}
150