File tree Expand file tree Collapse file tree 9 files changed +79
-26
lines changed Expand file tree Collapse file tree 9 files changed +79
-26
lines changed Original file line number Diff line number Diff line change 60
60
" ./vendor/bin/pint"
61
61
],
62
62
"test" : [
63
- " php artisan test --parallel --stop-on-failure"
63
+ " php artisan test --parallel --stop-on-failure --processes=8 "
64
64
],
65
65
"test:coverage" : [
66
- " XDEBUG_MODE=coverage php artisan test --parallel --coverage --min=85"
66
+ " XDEBUG_MODE=coverage php artisan test --parallel --coverage --min=85 --processes=8 --stop-on-failure "
67
67
],
68
68
"post-autoload-dump" : [
69
69
" Illuminate\\ Foundation\\ ComposerScripts::postAutoloadDump" ,
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<Head :title =" title" />
3
3
4
- <h1 v-text =" title" class =" mt-regular mb-regular " ></h1 >
4
+ <h1 v-text =" title" class =" mt-30 mb-40 " ></h1 >
5
5
6
6
<form class =" form" @submit.prevent =" update" >
7
7
<div class =" form__section" >
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<Head :title =" title" />
3
3
4
- <h1 v-text =" title" class =" mt-regular mb-regular " ></h1 >
4
+ <h1 v-text =" title" class =" mt-30 mb-40 " ></h1 >
5
5
6
6
<p v-if =" userCan($page.props, 'create-posts')" >User can create posts.</p >
7
7
</template >
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<Head :title =" title" />
3
3
4
- <h1 v-text =" title" class =" mb-regular " ></h1 >
4
+ <h1 v-text =" title" class =" mb-40 " ></h1 >
5
5
6
6
<form class =" form" @submit.prevent =" login" >
7
7
<div class =" form__section" >
60
60
</div >
61
61
</form >
62
62
63
- <div class =" mt-regular " >
63
+ <div class =" mt-30 " >
64
64
<Link :href =" route('register')" >Register</Link >
65
65
</div >
66
66
</template >
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<Head :title =" title" />
3
3
4
- <h1 v-text =" title" class =" mb-regular " ></h1 >
4
+ <h1 v-text =" title" class =" mb-40 " ></h1 >
5
5
6
6
<form class =" form" @submit.prevent =" register" >
7
7
<div class =" form__section" >
71
71
</div >
72
72
</form >
73
73
74
- <div class =" mt-regular " >
74
+ <div class =" mt-30 " >
75
75
<Link :href =" route('login')" >Login</Link >
76
76
</div >
77
77
</template >
Original file line number Diff line number Diff line change 1
- .mt-large {
2
- margin-top : 60px ;
3
- }
4
-
5
- .mb-large {
6
- margin-bottom : 60px ;
7
- }
1
+ @use " sass:map" ;
8
2
9
- .mt-regular {
10
- margin-top : 30px ;
11
- }
12
-
13
- .mb-regular {
14
- margin-bottom : 30px ;
15
- }
3
+ @use " @scss/utilities/functions" ;
4
+ @use " @scss/utilities/mixins" ;
16
5
17
- .mt-small {
18
- margin-top : 15px ;
6
+ // ---- Responsive ----//
7
+ @media (min-width : (functions .breakpoint (mobile-2 ) + 1 )) {
8
+ @include mixins .spacing (desktop);
19
9
}
20
10
21
- .mb-small {
22
- margin-bottom : 15 px ;
11
+ @media ( max-width : functions . breakpoint ( mobile-2 )) {
12
+ @include mixins . spacing (mobile) ;
23
13
}
Original file line number Diff line number Diff line change 16
16
@function border ($size ) {
17
17
@return map .get (variables .$borders , $size );
18
18
}
19
+
20
+ @function breakpoint ($key ) {
21
+ @return map .get (variables .$breakpoints , $key );
22
+ }
Original file line number Diff line number Diff line change 1
1
@use " sass:map" ;
2
2
3
+ @use " @scss/utilities/variables" ;
3
4
@use " @scss/utilities/functions" ;
4
5
5
6
@mixin rem ($pixels ) {
6
7
font-size : $pixels ;
7
8
font-size : functions .px-to-rem ($pixels );
8
9
}
10
+
11
+ @mixin spacing ($size ) {
12
+ @each $amount , $amountPixels in map .get (variables .$spacing , $size ) {
13
+ .mt-#{$amount } {
14
+ margin-top : $amountPixels ;
15
+ }
16
+
17
+ .mr-#{$amount } {
18
+ margin-right : $amountPixels ;
19
+ }
20
+
21
+ .mb-#{$amount } {
22
+ margin-bottom : $amountPixels ;
23
+ }
24
+
25
+ .ml-#{$amount } {
26
+ margin-left : $amountPixels ;
27
+ }
28
+ }
29
+ }
30
+
31
+ @mixin flex-center {
32
+ display : flex ;
33
+ align-items : center ;
34
+ justify-content : center ;
35
+ }
Original file line number Diff line number Diff line change @@ -10,3 +10,35 @@ $border-radiuses: (
10
10
$borders : (
11
11
form-fields : 1px solid #aaa ,
12
12
);
13
+
14
+ $breakpoints : (
15
+ tablet-1 : 1024px ,
16
+ tablet-2 : 768px ,
17
+ mobile-1 : 670px ,
18
+ mobile-2 : 450px ,
19
+ );
20
+
21
+ $spacing : (
22
+ desktop : (
23
+ 15 : 15px ,
24
+ 30 : 30px ,
25
+ 40 : 40px ,
26
+ 50 : 50px ,
27
+ 60 : 60px ,
28
+ 70 : 70px ,
29
+ 80 : 80px ,
30
+ 90 : 90px ,
31
+ 100 : 100px ,
32
+ ),
33
+ mobile : (
34
+ 15 : 10px ,
35
+ 30 : 20px ,
36
+ 40 : 30px ,
37
+ 50 : 35px ,
38
+ 60 : 40px ,
39
+ 70 : 45px ,
40
+ 80 : 55px ,
41
+ 90 : 60px ,
42
+ 100 : 65px ,
43
+ ),
44
+ );
You can’t perform that action at this time.
0 commit comments