提交 | 用户 | 时间
|
58d006
|
1 |
//some page-content variables |
A |
2 |
@content-bg: #FFF; |
|
3 |
@content-header-border: #E2E2E2; |
|
4 |
@content-header-color: #2679B5; |
|
5 |
@content-header-small-color: #8089A0; |
|
6 |
|
|
7 |
|
|
8 |
html { |
|
9 |
min-height: 100%; |
|
10 |
position: relative; |
|
11 |
} |
|
12 |
|
|
13 |
body { |
|
14 |
background-color: @body-background; |
|
15 |
min-height: 100%; |
|
16 |
padding-bottom: 0; |
|
17 |
|
|
18 |
font-family: 'Open Sans'; |
|
19 |
font-size: @base-font-size; |
|
20 |
color: @text-color; |
|
21 |
|
|
22 |
line-height: 1.5; |
|
23 |
} |
|
24 |
|
|
25 |
|
|
26 |
.main-container { |
|
27 |
//this is the white page background, used especially when inside ".container" |
|
28 |
//it will expand all the way down to fill all the page space |
|
29 |
&:before { |
|
30 |
display: block; |
|
31 |
content: ""; |
|
32 |
position: absolute; |
|
33 |
z-index: -2; |
|
34 |
|
|
35 |
width: 100%; |
|
36 |
max-width: inherit; |
|
37 |
bottom: 0; |
|
38 |
top: 0; |
|
39 |
|
|
40 |
background-color: #FFF; |
|
41 |
} |
|
42 |
|
|
43 |
&.container { |
|
44 |
&, .rtl & {padding-left: 0; padding-right: 0;} |
|
45 |
|
|
46 |
&:before { |
|
47 |
.box-shadow(~"0 0 0 1px rgba(0,0,0,0.1)"); |
|
48 |
width: inherit; |
|
49 |
|
|
50 |
//we use above+this instead of min-width, for better results when we disable responsiveness |
|
51 |
@media (max-width: @screen-xs-max) { |
|
52 |
.box-shadow(~"none"); |
|
53 |
width: 100%; |
|
54 |
} |
|
55 |
} |
|
56 |
} |
|
57 |
} |
|
58 |
|
|
59 |
.main-content { |
|
60 |
.clearfix; |
|
61 |
|
|
62 |
margin-left: 0; |
|
63 |
min-height: 100%; |
|
64 |
padding: 0; |
|
65 |
|
|
66 |
.sidebar + & { |
|
67 |
margin-left: @sidebar-width; |
|
68 |
} |
|
69 |
} |
|
70 |
|
|
71 |
.page-content { |
|
72 |
background-color: @content-bg; |
|
73 |
position: relative; |
|
74 |
margin: 0; |
|
75 |
padding: @page-content-padding-top 20px 24px; |
|
76 |
} |
|
77 |
|
|
78 |
.page-header { |
|
79 |
margin:0 0 12px; |
|
80 |
border-bottom:1px dotted @content-header-border; |
|
81 |
|
|
82 |
padding-bottom: 16px; |
|
83 |
padding-top: 7px; |
|
84 |
|
|
85 |
h1 { |
|
86 |
padding: 0; |
|
87 |
margin: 0 8px; |
|
88 |
font-size: @font-size-content-header; |
|
89 |
font-weight: lighter; |
|
90 |
color: @content-header-color; |
|
91 |
|
|
92 |
small { |
|
93 |
margin: 0 6px; |
|
94 |
font-size: @font-size-content-header-small; |
|
95 |
font-weight: normal; |
|
96 |
color: @content-header-small-color; |
|
97 |
}//small |
|
98 |
}//h1 |
|
99 |
} |
|
100 |
|
|
101 |
|
|
102 |
.ajax-loading-overlay { |
|
103 |
position: absolute; |
|
104 |
z-index: 1999; |
|
105 |
left: 0; |
|
106 |
right: 0; |
|
107 |
top: 0; |
|
108 |
bottom: 0; |
|
109 |
|
|
110 |
background-color: rgba(255, 255, 255, 0.5); |
|
111 |
filter: ~"progid:DXImageTransform.Microsoft.gradient( startColorstr='#80FFFFFF', endColorstr='#80FFFFFF',GradientType=0 )"; |
|
112 |
|
|
113 |
|
|
114 |
> .ajax-loading-icon { |
|
115 |
position: relative; |
|
116 |
left: 8px; |
|
117 |
top: 8px; |
|
118 |
} |
|
119 |
|
|
120 |
&.content-loaded { |
|
121 |
background-color: rgba(255, 255, 255, 0.4); |
|
122 |
filter: ~"progid:DXImageTransform.Microsoft.gradient( startColorstr='#66FFFFFF', endColorstr='#66FFFFFF',GradientType=0 )"; |
|
123 |
} |
|
124 |
&.almost-loaded {//just waiting for scripts |
|
125 |
background-color: rgba(255, 255, 255, 0.3); |
|
126 |
filter: ~"progid:DXImageTransform.Microsoft.gradient( startColorstr='#4CFFFFFF', endColorstr='#4CFFFFFF',GradientType=0 )"; |
|
127 |
} |
|
128 |
|
|
129 |
&.ajax-overlay-body { |
|
130 |
position: fixed; |
|
131 |
z-index: 2999; |
|
132 |
|
|
133 |
> .ajax-loading-icon { |
|
134 |
left: 8px; |
|
135 |
top: 8px; |
|
136 |
} |
|
137 |
} |
|
138 |
} |
|
139 |
|