-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.scss
58 lines (47 loc) · 1.12 KB
/
style.scss
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
*, *::before, *::after {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: inherit;
}
body {
display: flex;
justify-content: center;
align-items: center;
font-family: sans-serif;
height: 100vh;
}
.container {
display: flex;
flex-direction: column;
border: 1px solid black;
position: relative;
padding: 10px;
max-width: 500px;
.item {
padding: 20px 100px;
border: 1px solid blue;
user-select: none;
transition-property: transform, background-color;
transition-duration: 0.2s;
transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
&:not(:last-of-type) {
margin-bottom: 10px;
}
&:hover {
background: rgba(0, 0, 0, 0.089);
}
&.dragging {
outline: 2px dashed red;
border: 1px solid transparent;
}
&.pseudo {
position: absolute;
opacity: 0.5;
}
&.preview {
background:rgba(0, 0, 0, 0.089);
border: 1px solid transparent;
}
}
}