PluginProbe
Blog Floating Button / trunk
Blog Floating Button vtrunk
trunk 1.4.10 1.4.11 1.4.12 1.4.13 1.4.14 1.4.15 1.4.16 1.4.17 1.4.18 1.4.19 1.4.20 1.4.21 1.4.7 1.4.8 1.4.9
blog-floating-button / css / bfb_basic.scss

bfb_basic.scss in Blog Floating Button trunk, at css/bfb_basic.scss

196 lines 4.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {{device}}
2 {{designType}}
3 {{bfb_fontSize_pc}}
4 {{bfb_fontSize_sp}}
5 {{btnColor}}
6 {{btnColor2}}
7 {{bfbBgColor}}
8 {{innerBfb_PaddingTop_pc}}
9 {{innerBfb_PaddingLeft_pc}}
10 {{topText_bottom_pc}}
11 {{innerBfb_PaddingTop_sp}}
12 {{innerBfb_PaddingLeft_sp}}
13 {{topText_bottom_sp}}
14 {{topTextColorPicker}}
15 {{discTextColorPicker}}
16 {{optimize_preview}}
17
18 @if $device == 'pc' or $optimize_preview == 'true' {
19
20 #bfb_content_pc{ display: block !important; }
21 #bfb_content_sp{ display: none !important; }
22 @media screen and (max-width: 480px) {
23 #bfb_content_pc{ display: none !important; }
24 #bfb_content_sp{ display: block !important; }
25 }
26
27 [id^="bfb_content_"]^="bfb_content_""]{
28
29 .inner_bfb{
30 position: relative;
31 line-height: 160%;
32 }
33 //説明文+ボタン、ボタン+ボタン
34 & .bfb_parts_2 .bfb_discText{
35 width: calc( 50% - 10px );
36 max-width: calc( 50% - 10px );
37 overflow: hidden;
38 }
39 &.bfb_textTextBtn .bfb_parts_2 a,
40 &.bfb_textBtnTextBtn .bfb_parts_2 a{
41 width: calc( 50% - 10px );
42 max-width: calc( 50% - 10px );
43 overflow: hidden;
44 }
45 .bfb_parts_2{
46 margin: 0 auto;
47 max-width: 700px;
48 text-align: center;
49 }
50 .bfb_parts_2 .bfb_discText{
51 display: inline-block;
52 margin-right: 10px;
53 text-align: left;
54 vertical-align: middle;
55 }
56 .bfb_parts_2 a + a{ margin-left: 15px; }
57
58
59 //閉じるボタン
60 .bfb_closed{
61 z-index: 99999;
62 position: absolute;
63 padding: 5px 10px;
64 top: -35px;
65 right: 10px;
66 cursor: pointer;
67 }
68 .bfb_closed img{
69 width: 20px;
70 height: 20px;
71 }
72 //自動非表示
73 &.bfb_hide.bfb_rb,
74 &.bfb_hide.bfb_lb,
75 &.bfb_hide{ transform: translateY(150%); }
76 &.bfb_hide.bfb_rt,
77 &.bfb_hide.bfb_lt{
78 transform: translateY(-150%);
79 }
80 //ボタン形状
81 &.bfb_rounded_corners a{ border-radius: 40px; }
82 &.bfb_square a{ border-radius: 4px; }
83
84 }
85
86 [id^="bfb_content_"]^="bfb_content_""].bfb_view_pc{
87
88 .inner_bfb{
89 padding: #{$innerBfb_PaddingTop_pc}px 10px;
90 }
91 .bfb_topText{
92 margin-bottom: #{$topText_bottom_pc}px;
93 color: $topTextColorPicker;
94 font-size: 1em;
95 }
96 .bfb_parts_2 .bfb_discText{
97 color: $discTextColorPicker;
98 }
99
100 @if $designType == 'imgBanner' {
101
102 //バナー画像
103 &.bfb_imgBanner.bfb_view_pc{
104 width: auto !important;
105 background: transparent !important;
106 }
107 &.bfb_imgBanner.bfb_view_pc a{
108 display: block !important;
109 }
110 &.bfb_imgBanner.bfb_view_pc.bfb_rt{ right: 20px; top: 20px; }
111 &.bfb_imgBanner.bfb_view_pc.bfb_rb{ right: 20px; bottom: 20px; }
112 &.bfb_imgBanner.bfb_view_pc.bfb_lb{ left: 20px; bottom: 20px; }
113 &.bfb_imgBanner.bfb_view_pc.bfb_lt{ left: 20px; top: 20px; }
114 &.bfb_imgBanner.bfb_view_pc img{ max-width: 300px; max-height: 300px; }
115
116 }
117
118 }
119
120 }
121
122 @if $device == 'sp' or $optimize_preview == 'true' {
123
124 [id^="bfb_content_"]^="bfb_content_""].bfb_view_sp{
125
126 .inner_bfb{ padding: #{$innerBfb_PaddingTop_sp}px 5px; }
127
128 &.bfb_imgBanner.bfb_rt{
129 left: 0;
130 right: auto;
131 top: 0;
132 bottom: auto;
133 }
134 &.bfb_imgBanner.bfb_rb{
135 top: auto;
136 left: 0;
137 right: auto;
138 bottom: 0;
139 }
140 & .bfb_closed{
141 top: -30px;
142 right: 5px;
143 }
144 & .bfb_closed img{
145 width: 20px !important;
146 height: 20px !important;
147 }
148 &.bfb_top{
149 right: 0;
150 top: 0;
151 }
152 &.bfb_hide.bfb_top{
153 transform: translateY(-150%);
154 }
155 &.bfb_bottom{
156 right: 0;
157 bottom: 0;
158 }
159 &.bfb_hide.bfb_bottom{
160 transform: translateY(150%);
161 }
162 .bfb_topText{
163 margin-bottom: #{$topText_bottom_sp}px;
164 color: $topTextColorPicker;
165 font-size: 1em;
166 }
167 a.bfb_btn,
168 a.bfb_btn2{
169 padding: 8px 10px;
170 }
171
172 .bfb_parts_2 .bfb_discText{
173 margin-right: 10px;
174 color: $discTextColorPicker;
175 font-size: 1em;
176 }
177 .bfb_parts_2 a + a{ margin-left: 5px; }
178
179 &.bfb_textBtnTextBtn .bfb_parts_2 a + a{
180 margin-left: 10px;
181 }
182 &.bfb_imgBanner a{ display: block; line-height: 0; }
183 &.bfb_imgBanner a img {
184 max-width: none;
185 max-height: none;
186 width: 100%;
187 height: auto;
188 }
189 &.bfb_imgBanner.bfb_rt{ right: 0; top: 0; }
190 &.bfb_imgBanner.bfb_rb{ right: 0; bottom: 0; }
191 &.bfb_imgBanner.bfb_lb{ left: 0; bottom: 0; }
192 &.bfb_imgBanner.bfb_lt{ left: 0; top: 0; }
193
194 }
195
196 }//@if $device == 'pc' {