Make everything a little bit smaller
This commit is contained in:
parent
9e2bd85175
commit
3c6ad85b77
|
@ -179,7 +179,7 @@ viewTile isTileHeld columnIndex tileIndex tile =
|
||||||
-- )
|
-- )
|
||||||
, attributeIf isTileHeld (onMouseEnter <| HeldOverNewTile columnIndex tileIndex)
|
, attributeIf isTileHeld (onMouseEnter <| HeldOverNewTile columnIndex tileIndex)
|
||||||
]
|
]
|
||||||
[ viewGrip 30 columnIndex tileIndex tile
|
[ viewGrip 24 columnIndex tileIndex tile
|
||||||
, input
|
, input
|
||||||
[ value tile.text
|
[ value tile.text
|
||||||
, onInput (SetTileText columnIndex tileIndex)
|
, onInput (SetTileText columnIndex tileIndex)
|
||||||
|
@ -190,8 +190,8 @@ viewTile isTileHeld columnIndex tileIndex tile =
|
||||||
[]
|
[]
|
||||||
, svg
|
, svg
|
||||||
[ Svg.Attributes.class "tile-stickers"
|
[ Svg.Attributes.class "tile-stickers"
|
||||||
, height "80"
|
, height "64"
|
||||||
, width "400"
|
, width "320"
|
||||||
, style "user-select" "none"
|
, style "user-select" "none"
|
||||||
]
|
]
|
||||||
(map viewSticker tile.stickers)
|
(map viewSticker tile.stickers)
|
||||||
|
@ -243,7 +243,7 @@ viewMiniTile word =
|
||||||
[ class "tile"
|
[ class "tile"
|
||||||
, class "mini-tile"
|
, class "mini-tile"
|
||||||
]
|
]
|
||||||
[ viewGrip 20 -1 -1 { text = word, stickers = [] }
|
[ viewGrip 16 -1 -1 { text = word, stickers = [] }
|
||||||
, input
|
, input
|
||||||
[ value word
|
[ value word
|
||||||
, disabled True
|
, disabled True
|
||||||
|
|
53
style.sass
53
style.sass
|
@ -3,12 +3,12 @@ button
|
||||||
|
|
||||||
h3
|
h3
|
||||||
font-family: 'Rent Strike'
|
font-family: 'Rent Strike'
|
||||||
font-size: 5em
|
font-size: 4em
|
||||||
margin: 30px
|
margin: 24px
|
||||||
|
|
||||||
input
|
input
|
||||||
font-family: 'Rent Strike'
|
font-family: 'Rent Strike'
|
||||||
font-size: 1.5em
|
font-size: 1.2em
|
||||||
|
|
||||||
.columns
|
.columns
|
||||||
display: flex
|
display: flex
|
||||||
|
@ -33,8 +33,8 @@ input
|
||||||
--color-weak: #f9e5db
|
--color-weak: #f9e5db
|
||||||
|
|
||||||
.column
|
.column
|
||||||
width: 400px
|
width: 320px
|
||||||
padding: 20px
|
padding: 64px
|
||||||
|
|
||||||
& > h3
|
& > h3
|
||||||
color: var(--color-strong)
|
color: var(--color-strong)
|
||||||
|
@ -45,51 +45,50 @@ input
|
||||||
text-align: center
|
text-align: center
|
||||||
|
|
||||||
#hover-tile
|
#hover-tile
|
||||||
height: 110px
|
height: 88px
|
||||||
margin-top: -15px
|
margin-top: -12px
|
||||||
|
|
||||||
.tile
|
.tile
|
||||||
position: relative
|
position: relative
|
||||||
height: 80px
|
height: 64px
|
||||||
width: 400px
|
width: 320px
|
||||||
|
|
||||||
display: grid
|
display: grid
|
||||||
align-items: center
|
align-items: center
|
||||||
margin-bottom: 15px
|
margin-bottom: 12px
|
||||||
border: none
|
border: none
|
||||||
background-color: var(--color-weak)
|
background-color: var(--color-weak)
|
||||||
|
|
||||||
&.mini-tile
|
&.mini-tile
|
||||||
height: 50px
|
height: 40px
|
||||||
width: 250px
|
width: 200px
|
||||||
|
|
||||||
--color-strong: #999
|
--color-strong: #999
|
||||||
--color-weak: #ccc
|
--color-weak: #ccc
|
||||||
|
|
||||||
svg.drag-gripper
|
svg.drag-gripper
|
||||||
padding: 6px
|
padding: 5px
|
||||||
top: 9px
|
top: 7px
|
||||||
left: 7px
|
left: 5px
|
||||||
|
|
||||||
input
|
input
|
||||||
font-size: 1.7em
|
font-size: 1.36em
|
||||||
color: black
|
color: black
|
||||||
|
|
||||||
svg.drag-gripper
|
svg.drag-gripper
|
||||||
color: var(--color-strong)
|
color: var(--color-strong)
|
||||||
position: absolute
|
position: absolute
|
||||||
padding: 8px
|
padding: 6px
|
||||||
top: 17px // Centered in 80px with 30px body and 8px padding
|
top: 14px // Centered in 64px with 24px body and 6px padding
|
||||||
left: 15px
|
left: 12px
|
||||||
border-radius: 8px
|
|
||||||
cursor: grab
|
cursor: grab
|
||||||
|
|
||||||
&::after
|
&::after
|
||||||
width: 400px
|
width: 320px
|
||||||
height: 20px
|
height: 64px
|
||||||
content: ''
|
content: ''
|
||||||
position: absolute
|
position: absolute
|
||||||
top: -20px
|
top: -12px
|
||||||
z-index: -1 // Prevent fluttering when moving mouse up
|
z-index: -1 // Prevent fluttering when moving mouse up
|
||||||
|
|
||||||
input
|
input
|
||||||
|
@ -100,7 +99,7 @@ input
|
||||||
background: none
|
background: none
|
||||||
border: none
|
border: none
|
||||||
text-align: center
|
text-align: center
|
||||||
font-size: 2.6em
|
font-size: 2.1em
|
||||||
|
|
||||||
&:focus-visible
|
&:focus-visible
|
||||||
border: none
|
border: none
|
||||||
|
@ -115,7 +114,7 @@ input
|
||||||
padding: 0
|
padding: 0
|
||||||
text-align: center
|
text-align: center
|
||||||
font-weight: bold
|
font-weight: bold
|
||||||
font-size: 80px
|
font-size: 64px
|
||||||
color: white
|
color: white
|
||||||
line-height: 0
|
line-height: 0
|
||||||
|
|
||||||
|
@ -141,8 +140,8 @@ input
|
||||||
|
|
||||||
& > .tile
|
& > .tile
|
||||||
position: relative
|
position: relative
|
||||||
top: -40px
|
top: -32px
|
||||||
left: -40px
|
left: -30px
|
||||||
|
|
||||||
--color-strong: #999
|
--color-strong: #999
|
||||||
--color-weak: #ccc
|
--color-weak: #ccc
|
||||||
|
|
Loading…
Reference in a new issue