forked from BSanchez/css-reference
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodal.sass
More file actions
108 lines (102 loc) · 1.91 KB
/
Copy pathmodal.sass
File metadata and controls
108 lines (102 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
.modal
+overlay
align-items: center
background: rgba(#000, 0.7)
display: flex
justify-content: center
opacity: 0
padding: 1rem
position: fixed
transition-duration: $speed
transition-property: opacity, visibility
visibility: hidden
.modal-box
background: #fff
flex-grow: 1
flex-shrink: 1
max-width: 46rem
opacity: 0
padding: 4rem 2rem
position: relative
transform: scale(0.95)
transform-origin: center center
transition-duration: $speed
transition-property: opacity, transform, visibility
.modal-title
color: $text-strong
font-size: 2rem
font-weight: $weight-bold
line-height: 1
margin-bottom: 3rem
text-align: center
.modal-close
background: $background
border-radius: 290486px
height: 3rem
position: absolute
right: 1rem
top: 1rem
transform: rotate(45deg)
transform-origin: center center
width: 3rem
&:before,
&:after
background: $text-light
content: ""
display: block
position: absolute
&:before
height: 50%
left: 50%
margin-left: -1px
top: 25%
width: 2px
&:after
height: 2px
left: 25%
margin-top: -1px
top: 50%
width: 50%
&:hover
background: darken($background, 5%)
&:active
background: darken($background, 10%)
.modal.is-active
opacity: 1
visibility: visible
.modal-box
opacity: 1
transform: scale(1)
visibility: visible
+mobile
.modal-url
.input
display: block
width: 100%
.button
margin-top: 1em
.modal-social
.button
display: block
margin-top: 1em
+desktop
.modal-box
padding: 4rem 6rem
.modal-url
display: flex
.input
flex-grow: 1
flex-shrink: 1
.button
flex-grow: 0
flex-shrink: 0
margin-left: 1em
padding-left: 0
padding-right: 0
width: 5.5em
.modal-social
align-items: center
display: flex
margin-top: 1rem
.button
margin-right: 1em