File tree Expand file tree Collapse file tree 15 files changed +304
-91
lines changed Expand file tree Collapse file tree 15 files changed +304
-91
lines changed Original file line number Diff line number Diff line change 1
- import { Grind } from './_grind.js'
1
+ import { Grind } from './_grind.js'
2
2
3
3
console . log ( 'Welcome to' , Grind )
Original file line number Diff line number Diff line change 1
1
$body-font-size : 16px ;
2
2
$body-line-height : 1.428571429 ;
3
- $body-text-color : #4f5157 ;
3
+ $body-text-color : #4b4a4f ;
4
4
$body-background-color : #fff ;
5
5
6
- $accent-color : #9077d3 ;
6
+ $accent-color : #3a70f4 ;
7
7
$link-color : $accent-color ;
8
8
$link-color-hover : darken ($link-color , 5% );
9
9
$link-color-active : darken ($link-color , 10% );
10
10
11
11
$font-weight-ultra-light : 100 ;
12
12
$font-weight-light : 300 ;
13
13
$font-weight-normal : 400 ;
14
- $font-weight-medium : 600 ;
14
+ $font-weight-medium : 500 ;
15
15
$font-weight-bold : 600 ;
16
16
17
- $font-family-sans-serif : ' Source Sans Pro ' , sans-serif ;
17
+ $font-family-sans-serif : ' BentonSans ' , sans-serif ;
18
18
19
19
$transition-duration : 0.2s ;
20
20
$transition-timing-function : ease-in-out ;
21
21
$transition-timing : $transition-duration $transition-timing-function ;
22
22
23
- $header-height : 160 px ;
23
+ $header-height : 112 px ;
24
24
$header-z-index : 10000 ;
25
25
$header-background-color : rgba ($body-background-color , 0.8 );
26
26
27
- $footer-height : 80 px ;
27
+ $footer-height : 208 px ;
28
28
$footer-z-index : $header-z-index - 1 ;
29
29
$footer-background-color : rgba ($body-background-color , 0.8 );
Original file line number Diff line number Diff line change 1
1
@import ' common' ;
2
2
@import ' normalize' ;
3
3
4
- * { box-sizing : border-box ; }
4
+ * {
5
+ -webkit-font-smoothing : antialiased ;
6
+ text-rendering : optimizeLegibility ;
7
+ box-sizing : border-box ;
8
+ }
5
9
6
10
html , body {
7
11
background : $body-background-color ;
8
12
}
9
13
10
14
body {
11
- padding : $header-height 0 $footer-height ;
15
+ min-width : 1070px ;
16
+ padding : 0 ;
12
17
13
18
font-family : $font-family-sans-serif ;
14
19
font-size : $body-font-size ;
@@ -18,17 +23,31 @@ body {
18
23
19
24
a {
20
25
color : $link-color ;
26
+ text-decoration : none ;
21
27
transition : color $transition-timing ;
22
28
23
29
& :hover { color : $link-color-hover ; }
24
30
& :active { color : $link-color-hover ; }
25
31
}
26
32
33
+ .brand-logo {
34
+ display : inline-block ;
35
+ width : 39px ;
36
+ height : 52px ;
37
+
38
+ font-size : 1px ;
39
+ color : transparent ;
40
+
41
+ background : transparent url (../img/logo.svg ) no-repeat center center ;
42
+ filter : drop-shadow (0 1px 10px rgba (#000 , 0.1 ));
43
+ }
44
+
27
45
.container {
28
- width : 900 px ;
46
+ width : 810 px ;
29
47
margin : 0 auto ;
30
48
}
31
49
32
50
@import ' app/typography' ;
51
+ @import ' app/buttons' ;
33
52
@import ' app/header' ;
34
53
@import ' app/footer' ;
Original file line number Diff line number Diff line change
1
+ .btn {
2
+ position : relative ;
3
+
4
+ display : inline-block ;
5
+ height : 36px ;
6
+ padding : 0 15px ;
7
+
8
+ font-size : 15px ;
9
+ font-weight : $font-weight-medium ;
10
+ line-height : 40px ;
11
+ color : #fff ;
12
+ cursor : pointer ;
13
+
14
+ background-image : linear-gradient (-180deg , #4c82ff 0% , #3b70ed 100% );
15
+ border-radius : 6px ;
16
+ box-shadow : 0 1px 2px 0 rgba (#000 , 0.15 );
17
+
18
+ & :hover , & :active {
19
+ color : #fff ;
20
+ }
21
+ }
22
+
23
+ .btn-info {
24
+ background-image : linear-gradient (-180deg , #5c5c68 0% , #494851 100% );
25
+ }
26
+
27
+ .btn-icon {
28
+ display : inline-block ;
29
+ vertical-align : baseline ;
30
+ background : transparent none no-repeat center center ;
31
+ }
32
+
33
+ .btn-icon-chevron-right {
34
+ width : 6px ;
35
+ height : 10px ;
36
+ margin-left : 10px ;
37
+ background-image : url (../img/button-chevron-right.svg );
38
+ }
Original file line number Diff line number Diff line change 1
1
.footer {
2
- position : fixed ;
3
- bottom : 0 ;
4
- left : 0 ;
5
-
6
2
display : block ;
7
3
width : 100% ;
8
-
9
- background : $footer-background-color ;
10
4
}
11
5
12
6
.footer-container {
13
7
height : $footer-height ;
8
+ padding : 50px 0 ;
9
+ }
10
+
11
+ .footer-logo {
12
+ position : relative ;
13
+ z-index : 1 ;
14
+
15
+ display : block ;
16
+ margin : 0 auto ;
17
+ }
18
+
19
+ .footer-content {
20
+ position : relative ;
21
+ z-index : 0 ;
22
+
23
+ display : flex ;
24
+ align-items : center ;
25
+ padding-top : 34px ;
26
+ margin-top : -14px ;
27
+
28
+ border-top : 1px solid rgba (#aeb2bf , 0.15 );
29
+ }
30
+
31
+ .footer-links {
32
+ display : block ;
33
+ flex : 1 ;
34
+ }
35
+
36
+ .footer-link {
37
+ display : inline-block ;
38
+
39
+ font-size : 15px ;
40
+ color : #494850 ;
41
+
42
+ & + & {
43
+ margin-left : 20px ;
44
+ }
45
+ }
46
+
47
+ .footer-text {
48
+ display : block ;
49
+ height : 36px ;
50
+ max-width : 220px ;
14
51
15
- line-height : $footer-height ;
16
- text-align : center ;
52
+ font-size : 11px ;
53
+ line-height : 18px ;
54
+ color : #aeb3bf ;
17
55
}
Original file line number Diff line number Diff line change 1
1
$header-padding-top : 100px ;
2
2
3
3
.header {
4
- position : fixed ;
5
- top : 0 ;
6
- left : 0 ;
7
-
8
4
display : block ;
9
5
width : 100% ;
10
- padding-top : $header-padding-top ;
11
-
12
- background : $header-background-color ;
13
6
}
14
7
15
8
.header-container {
16
- height : $header-height - $header-padding-top ;
17
- line-height : $header-height - $header-padding-top ;
9
+ position : relative ;
10
+ height : $header-height ;
11
+ padding : 0 15px ;
12
+
13
+ font-weight : $font-weight-medium ;
14
+ line-height : $header-height ;
18
15
}
19
16
20
17
.header-logo , .header-link {
21
18
text-decoration : none ;
22
19
}
23
20
24
21
.header-logo {
25
- font-size : 48px ;
26
- font-weight : $font-weight-ultra-light ;
22
+ position : relative ;
23
+ z-index : 1 ;
24
+
25
+ margin-right : 50px ;
26
+ vertical-align : middle ;
27
27
}
28
28
29
29
.header-links {
30
- float : right ;
30
+ position : relative ;
31
+ z-index : 1 ;
32
+
33
+ display : inline-block ;
34
+ vertical-align : middle ;
31
35
}
32
36
33
37
.header-link {
34
- display : block ;
35
- float : left ;
38
+ display : inline-block ;
36
39
37
- font-size : 20px ;
38
- font-weight : $font-weight-light ;
39
- color : $body-text-color ;
40
+ font-size : 15px ;
41
+ color : #494850 ;
40
42
41
- + .header-link {
43
+ & + & {
42
44
margin-left : 20px ;
43
45
}
44
46
}
Original file line number Diff line number Diff line change 1
- p {
2
- font-size : 22px ;
3
- font-weight : $font-weight-light ;
1
+ p , ul , ol {
2
+ margin : 0 ;
3
+
4
+ font-size : 13px ;
5
+ font-weight : $font-weight-normal ;
6
+ line-height : 26px ;
4
7
}
5
8
6
- h1 {
7
- font-size : 36px ;
9
+ li + li {
10
+ margin-top : 2px ;
11
+ }
12
+
13
+ %header {
14
+ margin : 0 0 20px ;
15
+
8
16
font-weight : $font-weight-medium ;
17
+ color : #1d1c1f ;
18
+
19
+ & :first-child {
20
+ margin-top : 0 ;
21
+ }
22
+ }
23
+
24
+ h1 {
25
+ @extend %header ;
26
+
27
+ margin-top : 60px ;
28
+ font-size : 20px ;
29
+ }
30
+
31
+ h2 {
32
+ @extend %header ;
33
+
34
+ margin-top : 50px ;
35
+ font-size : 17px ;
9
36
}
Original file line number Diff line number Diff line change 1
1
@import ' common' ;
2
2
3
- @font-face {
4
- $base : ' https://raw.githubusercontent.com/tonsky/FiraCode/master/distr' ;
5
- font-family : fira- code;
6
- font-style : normal ;
7
- font-weight : 400 ;
8
- src : url (#{$base } / eot/FiraCode-Regular.eot ) format (' embedded-opentype' ),
9
- url (#{$base } / woff2/FiraCode-Regular.woff2 ) format (' woff2' ),
10
- url (#{$base } / woff/FiraCode-Regular.woff ) format (' woff' ),
11
- url (#{$base } / ttf/FiraCode-Regular.ttf ) format (' truetype' );
12
- }
13
-
14
3
pre , code {
15
- font-family : fira- code, monospace ;
4
+ margin : 0 ;
5
+ font-family : ' Fira Code' , monospace ;
16
6
}
17
7
18
8
.code {
19
- padding : 6px 15px ;
20
-
21
- color : #625682 ;
22
-
23
- background : #f9f9f9 ;
24
- border : 1px solid #eee ;
25
- border-radius : 8px ;
9
+ padding : 30px ;
10
+ color : #555 ;
26
11
}
27
12
28
13
.code-keyword {
29
- color : $accent-color ;
14
+ color : #5520ff ;
30
15
}
31
16
32
- .code-func {
33
- color : #328eff ;
17
+ .code-func , .code-param , .code-object {
18
+ color : #5d99ff ;
34
19
}
35
20
36
21
.code-string {
37
- color : #129c9a ;
22
+ color : #00d8ff ;
38
23
}
You can’t perform that action at this time.
0 commit comments