Toolkit: Add thumnbail-like box for nav
Update images to use max-width instead of width Add margin auto on submission images
This commit is contained in:
parent
4ca4fe3047
commit
074e326562
|
@ -43,7 +43,7 @@ body {
|
|||
|
||||
img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
@ -100,6 +100,29 @@ img {
|
|||
border-color: $dark-border;
|
||||
}
|
||||
}
|
||||
.toolkit-thumbnail--border {
|
||||
padding: 0 8px;
|
||||
color: $dark;
|
||||
background-color: $light-background;
|
||||
|
||||
.toolkit-thumbnail--border--content {
|
||||
padding: 16px;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
border-radius: 3px;
|
||||
background-color: $white;
|
||||
border-color: $border-light;
|
||||
}
|
||||
}
|
||||
.toolkit-dark .toolkit-thumbnail--border {
|
||||
color: $dark-text;
|
||||
background-color: $dark;
|
||||
|
||||
.toolkit-thumbnail--border--content {
|
||||
background-color: $dark-body;
|
||||
border-color: $dark-border;
|
||||
}
|
||||
}
|
||||
|
||||
.toolkit-select {
|
||||
.toolkit-select--title {
|
||||
|
|
7
toolkit/templates/thumbnail_border.rs.html
Normal file
7
toolkit/templates/thumbnail_border.rs.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
@(body: Content)
|
||||
|
||||
<div class="toolkit-thumbnail--border">
|
||||
<div class="toolkit-thumbnail--border--content">
|
||||
@:body()
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in a new issue