提交 | 用户 | 时间
|
58d006
|
1 |
.enable_pricing() when(@enable-pricing = true) { |
A |
2 |
|
|
3 |
//pricing table |
|
4 |
.pricing-box { |
|
5 |
&:not(:first-child) { |
|
6 |
padding-left:7px; |
|
7 |
} |
|
8 |
&:not(:last-child) { |
|
9 |
padding-right:7px; |
|
10 |
} |
|
11 |
|
|
12 |
|
|
13 |
.price{ |
|
14 |
font-size: @font-size-pricing-price; |
|
15 |
line-height: 20px; |
|
16 |
height: 28px; |
|
17 |
text-align: center; |
|
18 |
color: #555; |
|
19 |
|
|
20 |
small { font-size: @font-size-pricing-price-small; } |
|
21 |
} |
|
22 |
|
|
23 |
.btn { font-size: @font-size-pricing-button; } //the purchase button |
|
24 |
|
|
25 |
.widget-header {/* the title */ |
|
26 |
text-align:center; |
|
27 |
padding-left:0; |
|
28 |
} |
|
29 |
} |
|
30 |
@media only screen and (max-width: @screen-xs-min) { |
|
31 |
.pricing-box { |
|
32 |
margin: 0; |
|
33 |
margin-bottom:16px; |
|
34 |
|
|
35 |
padding-left:0 !important; |
|
36 |
padding-right:0 !important; |
|
37 |
margin-left: -1px; |
|
38 |
|
|
39 |
&:nth-child(odd) { |
|
40 |
padding-left: @grid-gutter-width / 2 !important; |
|
41 |
} |
|
42 |
&:nth-child(even) { |
|
43 |
padding-right: @grid-gutter-width / 2 !important; |
|
44 |
} |
|
45 |
} |
|
46 |
} |
|
47 |
@media only screen and (max-width: @screen-topbar-down) { |
|
48 |
.pricing-box { |
|
49 |
margin: 0; |
|
50 |
margin-bottom:16px; |
|
51 |
width:100%; |
|
52 |
|
|
53 |
padding-left:@grid-gutter-width / 2 !important; |
|
54 |
padding-right: @grid-gutter-width / 2 !important; |
|
55 |
} |
|
56 |
} |
|
57 |
|
|
58 |
|
|
59 |
|
|
60 |
.pricing-table-header { |
|
61 |
padding-top: 0; |
|
62 |
margin-top: 0; |
|
63 |
text-align: left; |
|
64 |
> li { |
|
65 |
padding: 7px 0 7px 11px; |
|
66 |
font-size: @font-size-pricing-table-caption; |
|
67 |
} |
|
68 |
} |
|
69 |
|
|
70 |
.pricing-table { |
|
71 |
margin-top: 0; |
|
72 |
> li { |
|
73 |
text-align: center; |
|
74 |
padding: 7px 0; |
|
75 |
font-size: @font-size-pricing-table-value; |
|
76 |
} |
|
77 |
} |
|
78 |
|
|
79 |
|
|
80 |
.list-striped { |
|
81 |
> li { |
|
82 |
&:nth-child(odd) { |
|
83 |
background-color:#FFF; |
|
84 |
} |
|
85 |
&:nth-child(even) { |
|
86 |
background-color:#F2F3EB; |
|
87 |
} |
|
88 |
} |
|
89 |
|
|
90 |
&.pricing-table-header > li:nth-child(even) { |
|
91 |
background-color:#EEE; |
|
92 |
} |
|
93 |
} |
|
94 |
|
|
95 |
|
|
96 |
.pricing-box-small { |
|
97 |
box-shadow:none; |
|
98 |
margin-left:-2px; |
|
99 |
background-color:#FFF; |
|
100 |
|
|
101 |
position:relative; |
|
102 |
z-index: 10; |
|
103 |
|
|
104 |
.price { |
|
105 |
line-height:20px; height:28px; |
|
106 |
text-align:center; |
|
107 |
.label { |
|
108 |
&:before, &:after { |
|
109 |
margin-top:-2px; |
|
110 |
.opacity(0.9); |
|
111 |
} |
|
112 |
} |
|
113 |
} |
|
114 |
|
|
115 |
&:hover { |
|
116 |
box-shadow:0 0 4px 2px rgba(0,0,0,0.15); |
|
117 |
|
|
118 |
z-index: 11; |
|
119 |
.scale(1.04); |
|
120 |
//-webkit-transform:none;/*chrome blurs when scaled, so disable it!*/ |
|
121 |
|
|
122 |
.price > .label { |
|
123 |
.scale(0.96); |
|
124 |
//-webkit-transform:none; |
|
125 |
} |
|
126 |
} |
|
127 |
} |
|
128 |
|
|
129 |
|
|
130 |
|
|
131 |
|
|
132 |
.pricing-span { |
|
133 |
margin:0; |
|
134 |
width:19%; |
|
135 |
max-width:150px !important; |
|
136 |
min-width:110px !important; |
|
137 |
float:left !important; |
|
138 |
} |
|
139 |
.pricing-span-header { |
|
140 |
padding-right: 0; |
|
141 |
} |
|
142 |
|
|
143 |
|
|
144 |
@media only screen and (min-width: @screen-xs-min) { |
|
145 |
.pricing-span-body { |
|
146 |
padding-left: 0; |
|
147 |
padding-right: 0; |
|
148 |
} |
|
149 |
} |
|
150 |
@media only screen and (max-width: @screen-xs) { |
|
151 |
.pricing-span-header , .pricing-span-body { |
|
152 |
width: 100%; |
|
153 |
padding-right: @grid-gutter-width / 2; |
|
154 |
} |
|
155 |
} |
|
156 |
|
|
157 |
|
|
158 |
|
|
159 |
} |
|
160 |
.enable_pricing(); |