169 lines
2.6 KiB
Sass
169 lines
2.6 KiB
Sass
button
|
|
cursor: pointer
|
|
|
|
h3
|
|
font-family: 'Rent Strike'
|
|
font-size: 4em
|
|
margin: 24px
|
|
|
|
input
|
|
font-family: 'Rent Strike'
|
|
font-size: 1.2em
|
|
|
|
.columns
|
|
display: flex
|
|
flex-flow: row wrap
|
|
justify-content: center
|
|
overflow-y: auto
|
|
|
|
& > :nth-child(4n+1)
|
|
--color-strong: #c0d694
|
|
--color-weak: #e5eed4
|
|
|
|
& > :nth-child(4n+2)
|
|
--color-strong: #6ed8d6
|
|
--color-weak: #d3f3f2
|
|
|
|
& > :nth-child(4n+3)
|
|
--color-strong: #d3aee1
|
|
--color-weak: #eddef3
|
|
|
|
& > :nth-child(4n+4)
|
|
--color-strong: #eeab87
|
|
--color-weak: #f9e5db
|
|
|
|
.column
|
|
width: 320px
|
|
padding: 64px
|
|
|
|
& > h3
|
|
color: var(--color-strong)
|
|
& > .add-tile
|
|
background-color: var(--color-strong)
|
|
|
|
h3
|
|
text-align: center
|
|
|
|
#hover-tile
|
|
height: 88px
|
|
margin-top: -12px
|
|
|
|
.tile
|
|
position: relative
|
|
height: 64px
|
|
width: 320px
|
|
|
|
display: grid
|
|
align-items: center
|
|
margin-bottom: 12px
|
|
border: none
|
|
background-color: var(--color-weak)
|
|
|
|
&.mini-tile
|
|
height: 40px
|
|
width: 200px
|
|
margin: 10px
|
|
|
|
--color-strong: #999
|
|
--color-weak: #ccc
|
|
|
|
svg.drag-gripper
|
|
padding: 5px
|
|
top: 7px
|
|
left: 5px
|
|
|
|
input
|
|
font-size: 1.36em
|
|
color: black
|
|
|
|
svg.drag-gripper
|
|
color: var(--color-strong)
|
|
position: absolute
|
|
padding: 6px
|
|
top: 14px // Centered in 64px with 24px body and 6px padding
|
|
left: 12px
|
|
cursor: grab
|
|
|
|
&::after
|
|
width: 320px
|
|
height: 64px
|
|
content: ''
|
|
position: absolute
|
|
top: -12px
|
|
z-index: -1 // Prevent fluttering when moving mouse up
|
|
|
|
input
|
|
padding: 0
|
|
padding-top: 6px
|
|
height: calc(100% - 6px)
|
|
width: 100%
|
|
background: none
|
|
border: none
|
|
text-align: center
|
|
font-size: 2.1em
|
|
|
|
&:focus-visible
|
|
border: none
|
|
|
|
.tile-stickers
|
|
position: absolute
|
|
top: 0
|
|
left: 0
|
|
pointer-events: none // Allow clicking the input box below this
|
|
|
|
&.add-tile
|
|
padding: 0
|
|
text-align: center
|
|
font-weight: bold
|
|
font-size: 64px
|
|
color: white
|
|
line-height: 0
|
|
|
|
#floaty-tile
|
|
position: absolute
|
|
pointer-events: none
|
|
|
|
&.hovering-1 > .tile
|
|
--color-weak: #e5eed4
|
|
--color-strong: #c0d694
|
|
|
|
&.hovering-2 > .tile
|
|
--color-weak: #d3f3f2
|
|
--color-strong: #6ed8d6
|
|
|
|
&.hovering-3 > .tile
|
|
--color-weak: #eddef3
|
|
--color-strong: #d3aee1
|
|
|
|
&.hovering-4 > .tile
|
|
--color-weak: #f9e5db
|
|
--color-strong: #eeab87
|
|
|
|
& > .tile
|
|
position: relative
|
|
top: -32px
|
|
left: -30px
|
|
|
|
--color-strong: #999
|
|
--color-weak: #ccc
|
|
|
|
#word-bank
|
|
width: calc(100% - 400px)
|
|
padding: 30px 200px
|
|
|
|
display: flex
|
|
flex-flow: row wrap
|
|
justify-content: space-around
|
|
|
|
overflow-y: auto
|
|
overflow-x: hidden
|
|
|
|
background-color: #eee
|
|
|
|
body
|
|
user-select: none
|
|
display: grid
|
|
grid-template-rows: 1fr 20%
|
|
height: 100%
|
|
position: absolute
|
|
margin: 0 |