Skip to content

Commit bd20ee8

Browse files
committed
feat: Add UIKit custom styles to SCSS
1 parent 3eafd11 commit bd20ee8

File tree

2 files changed

+288
-0
lines changed

2 files changed

+288
-0
lines changed

scss/_parts.scss

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

scss/parts/_uikit-custom.scss

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

0 commit comments

Comments
 (0)