Skip to content

Commit 471f47c

Browse files
committed
feat: Add UIKit custom styles to SCSS
1 parent bd20ee8 commit 471f47c

3 files changed

Lines changed: 278 additions & 288 deletions

File tree

scss/_parts.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@
1919
//-------------------------------------------------- */
2020
//@import "parts/bg";
2121
//
22-
/* UIKit Custom Style
23-
-------------------------------------------------- */
24-
@import "parts/uikit-custom";
25-
2622
/* Header Style
2723
-------------------------------------------------- */
2824
@import "parts/header";

scss/atomic-package-docs.scss

Lines changed: 278 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,281 @@ body {
3636

3737
@import "parts";
3838
@import "pages";
39+
40+
/*
41+
* UIKit Custom Style
42+
*/
43+
.tm-sidebar-left {
44+
position: fixed;
45+
top: 80px;
46+
bottom: 0;
47+
box-sizing: border-box;
48+
width: 240px !important;
49+
padding: 40px 40px 60px 40px;
50+
border-right: 1px #e5e5e5 solid;
51+
overflow: auto;
52+
}
53+
54+
.tm-sidebar-right {
55+
position: absolute;
56+
top: 0;
57+
left: calc(100% + 0px);
58+
width: 200px;
59+
}
60+
61+
@media (min-width: 960px) {
62+
.tm-sidebar-left+.tm-main {
63+
padding-left: 240px;
64+
}
65+
}
66+
67+
@media (min-width: 1200px) {
68+
.tm-sidebar-right {
69+
left: calc(100% + 0px);
70+
}
71+
72+
.tm-sidebar-left+.tm-main {
73+
padding-left: 40px;
74+
}
75+
}
76+
77+
@media (min-width: 1400px) {
78+
.tm-sidebar-left {
79+
width: 300px !important;
80+
padding: 45px 45px 60px 45px;
81+
}
82+
83+
.tm-sidebar-right {
84+
left: calc(100% + 60px);
85+
}
86+
87+
.tm-sidebar-left+.tm-main {
88+
padding-left: 40px;
89+
}
90+
}
91+
92+
.tm-navbar-container:not(.uk-navbar-transparent) {
93+
background: linear-gradient(to left, #28a5f5, #1e87f0);
94+
}
95+
96+
.tm-navbar-container .uk-navbar-nav>li>a,
97+
.tm-navbar-container .uk-navbar-item:not(.uk-logo),
98+
.tm-navbar-container .uk-navbar-toggle {
99+
height: 70px;
100+
font-size: 13px;
101+
}
102+
103+
.tm-navbar-container .uk-navbar-nav>li>a {
104+
position: relative;
105+
}
106+
107+
.tm-navbar-container .uk-navbar-nav>li>a::before {
108+
content: '';
109+
display: block;
110+
position: absolute;
111+
left: 15px;
112+
right: calc(102% - 15px);
113+
bottom: 20px;
114+
height: 1px;
115+
background-color: currentColor;
116+
transition: .3s ease-in-out;
117+
transition-property: right;
118+
}
119+
120+
.tm-navbar-container .uk-navbar-nav>li>a:hover::before {
121+
right: 15px;
122+
}
123+
124+
.tm-nav>li.uk-active>a {
125+
position: relative;
126+
}
127+
128+
.tm-nav>li.uk-active>a:before {
129+
content: "";
130+
position: absolute;
131+
top: 15px;
132+
left: -25px;
133+
width: 15px;
134+
border-top: 1px solid #1e87f0;
135+
}
136+
137+
.tm-nav .uk-nav-header {
138+
padding: 8px 0;
139+
border-bottom: 1px solid #e5e5e5;
140+
}
141+
142+
@media (min-width: 960px) {
143+
.tm-subnav {
144+
margin-left: -50px;
145+
}
146+
147+
.tm-subnav>* {
148+
padding-left: 50px;
149+
}
150+
}
151+
152+
.tm-subnav>*>:first-child {
153+
text-transform: capitalize;
154+
}
155+
156+
.tm-label-changelog {
157+
width: 90px;
158+
margin-top: 3px;
159+
}
160+
161+
.tm-button-default,
162+
.tm-button-primary {
163+
border-radius: 500px;
164+
}
165+
166+
.tm-button-large {
167+
line-height: 48px;
168+
}
169+
170+
.tm-section-primary {
171+
background: linear-gradient(to left top, #28a5f5, #1e87f0) 0 0 no-repeat;
172+
}
173+
174+
.tm-section-texture {
175+
background: url("../images/section-background.svg") 50% 17vh no-repeat, linear-gradient(to left top, #28a5f5, #1e87f0) 0 0 no-repeat;
176+
}
177+
178+
.tm-section-intro {
179+
background: linear-gradient(to left top, #28a5f5, #1e87f0) 0 0 no-repeat, #fff;
180+
background-size: 100% 75%;
181+
}
182+
183+
.tm-h4,
184+
.tm-h5,
185+
.tm-h6 {
186+
font-family: Montserrat;
187+
font-weight: 600;
188+
text-transform: uppercase;
189+
letter-spacing: 2px;
190+
color: #999;
191+
}
192+
193+
.tm-h4 {
194+
font-size: 14px;
195+
}
196+
197+
.tm-h5 {
198+
font-size: 12px;
199+
}
200+
201+
.tm-h6 {
202+
font-size: 11px;
203+
}
204+
205+
.tm-text-large {
206+
font-size: 18px;
207+
}
208+
209+
.tm-box-shadow-medium {
210+
box-shadow: 2px 12px 35px rgba(0, 0, 0, 0.1), 0 1px 6px rgba(0, 0, 0, 0.05);
211+
}
212+
213+
.tm-box-shadow-large {
214+
box-shadow: -40px 40px 160px 0 rgba(0, 0, 0, 0.08), -8px 8px 15px 0 rgba(120, 120, 120, 0.04), 3px 3px 30px 0 rgba(0, 0, 0, 0.04);
215+
}
216+
217+
.tm-box-shadow-modal {
218+
box-shadow: 3px 3px 40px 0 rgba(0, 0, 0, 0.06);
219+
}
220+
221+
.tm-overlay-default {
222+
background: rgba(255, 255, 255, 0.5);
223+
}
224+
225+
.tm-modal-dialog {
226+
background: #f8f8f8;
227+
}
228+
229+
.tm-modal-header {
230+
padding: 20px 30px;
231+
}
232+
233+
.tm-modal-body {
234+
padding: 0;
235+
}
236+
237+
@media (min-width: 640px) {
238+
.tm-modal-header {
239+
padding: 25px 50px;
240+
}
241+
242+
.tm-modal-body {
243+
padding: 0 50px;
244+
}
245+
}
246+
247+
@media (min-width: 1600px) {
248+
.tm-modal-header {
249+
padding: 50px 120px;
250+
}
251+
252+
.tm-modal-body {
253+
padding: 0 120px;
254+
}
255+
}
256+
257+
.tm-modal-close-full {
258+
background: transparent;
259+
padding: 30px;
260+
}
261+
262+
@media (min-width: 640px) {
263+
.tm-modal-close-full {
264+
padding: 40px;
265+
}
266+
}
267+
268+
.tm-heading-fragment>a {
269+
color: inherit;
270+
text-decoration: none;
271+
}
272+
273+
@media (min-width: 640px) {
274+
h2.tm-heading-fragment>a:before {
275+
content: "#";
276+
position: absolute;
277+
width: 25px;
278+
margin-left: -25px;
279+
color: #999;
280+
}
281+
}
282+
283+
.tm-main .uk-container {
284+
padding-left: 15px;
285+
padding-right: 15px;
286+
}
287+
288+
@media (min-width: 640px) {
289+
.tm-main .uk-container {
290+
padding-left: 30px;
291+
padding-right: 30px;
292+
}
293+
}
294+
295+
@media (min-width: 960px) {
296+
.tm-main .uk-container {
297+
padding-left: 40px;
298+
padding-right: 40px;
299+
}
300+
}
301+
302+
@media (min-width: 1200px) {
303+
.tm-intro-text {
304+
margin-top: 30px;
305+
}
306+
}
307+
308+
@media (min-width: 1600px) {
309+
.tm-intro-text {
310+
margin-top: 90px;
311+
}
312+
313+
.tm-intro-image {
314+
margin-right: -75px;
315+
}
316+
}

0 commit comments

Comments
 (0)