PluginProbe
Ultimate Store Kit – Store Builder Addons for Elementor, WooCommerce Store Builder, EDD Store Builder / 3.1.4
Ultimate Store Kit – Store Builder Addons for Elementor, WooCommerce Store Builder, EDD Store Builder v3.1.4
3.1.4 3.0.8 3.0.9 3.1.0 3.1.2 3.1.3 3.0.7 3.0.5 3.0.4 3.0.3 3.0.2 trunk 1.5.0 1.5.1 1.5.2 1.6.1 1.6.2 1.6.3 1.6.4 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 All 93 releases
ultimate-store-kit / src / scss / widgets / featured-box.scss

featured-box.scss in Ultimate Store Kit – Store Builder Addons for Elementor, WooCommerce Store Builder, EDD Store Builder 3.1.4, at src/scss/widgets/featured-box.scss

186 lines 3.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 :root {
2 /* Theme colors */
3 --usk-fb-text: #2b2d42; /* Main text color */
4 --usk-fb-accent: #d90429; /* Accent color for hover/badge */
5 --usk-fb-light: #fff; /* Light text color */
6
7 /* Spacing and sizing */
8 --usk-fb-padding: 40px;
9 --usk-fb-gap: 8px;
10 --usk-fb-btn-padding: 10px 35px;
11 --usk-fb-badge-padding: 5px 10px;
12
13 /* Animation */
14 --usk-fb-transition: 0.3s ease-in-out;
15 }
16
17 /* Base layout and positioning */
18 .usk-featured-box {
19 position: relative;
20 width: 100%;
21 height: 100%;
22 }
23
24 .usk-featured-box .usk-item {
25 position: relative;
26 width: 100%;
27 height: 100%;
28 overflow: hidden;
29 }
30
31 /* Image handling */
32 .usk-featured-box .usk-image-wrap {
33 position: absolute;
34 inset: 0;
35 background: center/cover no-repeat;
36 transform: scale(1);
37 transition: transform var(--usk-fb-transition);
38 z-index: 1;
39 }
40
41 .usk-featured-box:hover .usk-image-wrap {
42 transform: scale(1.1);
43 }
44
45 /* Content layout */
46 .usk-featured-box .usk-content {
47 position: absolute;
48 padding: var(--usk-fb-padding);
49 inset-inline: 0;
50 z-index: 2;
51 }
52
53 /* Typography */
54 .usk-featured-box .usk-meta,
55 .usk-featured-box .usk-title a,
56 .usk-featured-box .usk-text {
57 color: var(--usk-fb-text);
58 position: relative;
59 }
60
61 .usk-featured-box .usk-meta,
62 .usk-featured-box .usk-title a {
63 text-decoration: none;
64 transition: color var(--usk-fb-transition);
65 display: inline-block;
66 }
67
68 .usk-featured-box .usk-meta:hover,
69 .usk-featured-box .usk-title a:hover {
70 color: var(--usk-fb-accent);
71 }
72
73 .usk-featured-box .usk-meta {
74 font-size: 12px;
75 font-weight: 500;
76 text-transform: uppercase;
77 margin-bottom: var(--usk-fb-gap);
78 }
79
80 .usk-featured-box .usk-title {
81 margin: 0 0 var(--usk-fb-gap);
82 font-size: 32px;
83 font-weight: 700;
84 text-transform: capitalize;
85 line-height: 1.2;
86 }
87
88 .usk-featured-box .usk-text {
89 font-size: 16px;
90 margin-bottom: 20px;
91 line-height: 1.6;
92 }
93
94 .usk-featured-box .usk-text p {
95 margin: 0;
96 }
97
98 /* Button styling */
99 .usk-featured-box .usk-link-btn {
100 position: relative;
101 transform: translate(
102 var(--usk-button-x-offset, 0),
103 var(--usk-button-y-offset, 0)
104 )
105 rotate(var(--usk-button-rotate, 0));
106 z-index: 2;
107 }
108
109 .usk-featured-box .usk-link-btn a {
110 position: relative;
111 display: inline-flex;
112 align-items: center;
113 justify-content: center;
114 padding: var(--usk-fb-btn-padding);
115 border-radius: 40px;
116 color: var(--usk-fb-accent);
117 font-size: 12px;
118 font-weight: 700;
119 text-decoration: none;
120 text-transform: capitalize;
121 overflow: hidden;
122 transition: color var(--usk-fb-transition);
123 min-width: 120px;
124 }
125
126 .usk-featured-box .usk-link-btn a span {
127 position: relative;
128 z-index: 1;
129 }
130
131 .usk-featured-box .usk-link-btn a::before {
132 content: "";
133 position: absolute;
134 inset: 0;
135 width: 0;
136 background-color: var(--usk-fb-accent);
137 transition: width var(--usk-fb-transition);
138 }
139
140 .usk-featured-box .usk-link-btn a:hover {
141 color: var(--usk-fb-light);
142 }
143
144 .usk-featured-box .usk-link-btn a:hover::before {
145 width: 100%;
146 }
147
148 /* Content positioning variants */
149 .usk-featured-box.usk-fb-content-position-top .usk-content {
150 top: 0;
151 }
152
153 .usk-featured-box.usk-fb-content-position-center .usk-content {
154 top: 50%;
155 transform: translateY(-50%);
156 }
157
158 .usk-featured-box.usk-fb-content-position-bottom .usk-content {
159 bottom: 0;
160 }
161
162 /* Badge styling */
163 .usk-featured-box .usk-badge {
164 position: absolute;
165 padding: var(--usk-fb-badge-padding);
166 background-color: var(--usk-fb-accent);
167 color: var(--usk-fb-light);
168 font-size: 12px;
169 font-weight: 700;
170 text-transform: uppercase;
171 transform: translate(
172 var(--usk-badge-x-offset, 0),
173 var(--usk-badge-y-offset, 0)
174 )
175 rotate(var(--usk-badge-rotate, 0));
176 z-index: 3;
177 }
178
179 /* Wrapper link */
180 .usk-featured-box-wrapper-link {
181 position: absolute;
182 inset: 0;
183 z-index: 4;
184 cursor: pointer;
185 }
186