forked from learn-anything/react-mindmap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.sass
68 lines (56 loc) · 1.18 KB
/
main.sass
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
$grey100: #f5f5f5
$grey500: #9e9e9e
$grey800: #424242
$grey900: #212121
$orange700: #f57c00
$white: #fff
$shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .2), 0 1px 5px 0 rgba(0, 0, 0, .12)
.mindmap-svg
height: 100vh
width: 100%
&:focus
outline: none
.mindmap-node > a
background: $grey100
border-radius: 10px
box-shadow: $shadow
color: $grey900
display: inline-block
font-family: 'Raleway'
font-size: 22px
margin: 0 auto
padding: 15px
text-align: center
text-decoration: none
transition: background-color .2s, color .2s ease-out
&[href]
&:hover
background-color: $orange700
color: $white
cursor: pointer
.mindmap-node--editable
cursor: all-scroll
& > a
pointer-events: none
.mindmap-subnode-group
align-items: center
border-left: 4px solid $grey500
display: flex
margin-left: 15px
padding: 5px
a
color: $grey900
font-family: 'Raleway'
font-size: 16px
padding: 2px 5px
.mindmap-connection
fill: transparent
stroke: $grey500
stroke-dasharray: 10px 4px
stroke-width: 3px
.mindmap-emoji
height: 24px
vertical-align: bottom
width: 24px
.reddit-emoji
border-radius: 50%