Fix weird clipping in Help section (#193)

* Fix weird clipping on Discord card

* Change to grid

* Tweaks

* All rows same height

* Did that cardboard box move
This commit is contained in:
Andreas E 2020-05-14 16:54:46 +02:00 committed by GitHub
parent 9c9f3ef65b
commit 34bf0442df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -188,11 +188,11 @@ export default {
width 100% width 100%
.card .card
background-color white background-color white
border 1px solid #cfd4db border-bottom 1px solid transparent
border-radius 6px border-radius 6px
box-shadow 0 0 30px #b1aeae52 box-shadow 0 0 30px #b1aeae52
color $accentColor color $accentColor
height 12rem height 100%
overflow hidden overflow hidden
padding 0.5rem padding 0.5rem
text-align center text-align center
@ -254,9 +254,10 @@ export default {
color $githubAccentColor color $githubAccentColor
.column .column
float left border 1px solid #cfd4db
padding 0.5rem border-radius 6px
width 25% &:hover
border-bottom none
a:focus a:focus
box-shadow none box-shadow none
outline none outline none
@ -265,7 +266,10 @@ export default {
outline none outline none
.row .row
margin 0 -5px display grid
grid-template-columns repeat(4, 1fr);
grid-auto-rows: 1fr;
grid-gap 1rem
&:after &:after
content '' content ''
display table display table
@ -290,11 +294,7 @@ export default {
width 100% width 100%
left 0 left 0
.column .column
width 100% padding 0.4rem 0.6rem
display block
margin-bottom 0
margin-top 0
padding 0.4rem 1rem
.card .card
height auto height auto
width auto width auto
@ -341,4 +341,7 @@ export default {
&__GitHub &__GitHub
h3 h3
color $githubAccentColor color $githubAccentColor
.row
grid-template-columns repeat(1, 1fr);
</style> </style>