Update panel, Fix icon buttons

This commit is contained in:
Jeremy Thomas 2019-10-12 23:57:31 +01:00
parent 639e09e2c3
commit 46b3edf9fe
6 changed files with 438 additions and 584 deletions

View File

@ -98,7 +98,7 @@
{% include elements/patreon.html %} {% include elements/patreon.html %}
</p> </p>
<p class="control"> <p class="control">
<a class="button is-primary" href="{{ site.data.meta.download }}"> <a class="button is-primary" style="height: 2.25em; padding: calc(.375em - 1px) .75em;" href="{{ site.data.meta.download }}">
<strong>Download</strong> <strong>Download</strong>
</a> </a>
</p> </p>

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -15,7 +15,7 @@ $dropdown-item-hover-background-color: $background !default
$dropdown-item-active-color: $link-invert !default $dropdown-item-active-color: $link-invert !default
$dropdown-item-active-background-color: $link !default $dropdown-item-active-background-color: $link !default
$dropdown-divider-background-color: $border !default $dropdown-divider-background-color: $border-light !default
.dropdown .dropdown
display: inline-flex display: inline-flex

View File

@ -1,13 +1,15 @@
$panel-margin: $block-spacing !default $panel-margin: $block-spacing !default
$panel-item-border: 1px solid $border !default $panel-item-border: 1px solid $border-light !default
$panel-radius: $radius-large !default
$panel-shadow: 0 0.5em 1em -0.125em rgba($black, 0.1), 0 0px 0 1px rgba($black, 0.02) !default
$panel-heading-background-color: $background !default $panel-heading-background-color: $background !default
$panel-heading-color: $text-strong !default $panel-heading-color: $text-strong !default
$panel-heading-line-height: 1.25 !default $panel-heading-line-height: 1.25 !default
$panel-heading-padding: 0.5em 0.75em !default $panel-heading-padding: 0.75em 1em !default
$panel-heading-radius: $radius !default $panel-heading-radius: $radius !default
$panel-heading-size: 1.25em !default $panel-heading-size: 1.25em !default
$panel-heading-weight: $weight-light !default $panel-heading-weight: $weight-bold !default
$panel-tabs-font-size: 0.875em !default $panel-tabs-font-size: 0.875em !default
$panel-tab-border-bottom: 1px solid $border !default $panel-tab-border-bottom: 1px solid $border !default
@ -26,22 +28,20 @@ $panel-block-active-icon-color: $link !default
$panel-icon-color: $text-light !default $panel-icon-color: $text-light !default
.panel .panel
border-radius: $panel-radius
box-shadow: $panel-shadow
font-size: $size-normal font-size: $size-normal
&:not(:last-child) &:not(:last-child)
margin-bottom: $panel-margin margin-bottom: $panel-margin
.panel-heading,
.panel-tabs, .panel-tabs,
.panel-block .panel-block
border-bottom: $panel-item-border &:not(:last-child)
border-left: $panel-item-border border-bottom: $panel-item-border
border-right: $panel-item-border
&:first-child
border-top: $panel-item-border
.panel-heading .panel-heading
background-color: $panel-heading-background-color background-color: $panel-heading-background-color
border-radius: $panel-heading-radius $panel-heading-radius 0 0 border-radius: $panel-radius $panel-radius 0 0
color: $panel-heading-color color: $panel-heading-color
font-size: $panel-heading-size font-size: $panel-heading-size
font-weight: $panel-heading-weight font-weight: $panel-heading-weight
@ -87,6 +87,9 @@ $panel-icon-color: $text-light !default
color: $panel-block-active-color color: $panel-block-active-color
.panel-icon .panel-icon
color: $panel-block-active-icon-color color: $panel-block-active-icon-color
&:last-child
border-bottom-left-radius: $panel-radius
border-bottom-right-radius: $panel-radius
a.panel-block, a.panel-block,
label.panel-block label.panel-block

View File

@ -70,14 +70,14 @@ $button-static-border-color: $grey-lighter !default
height: 1.5em height: 1.5em
width: 1.5em width: 1.5em
&:first-child:not(:last-child) &:first-child:not(:last-child)
margin-left: calc(-0.375em - #{$button-border-width}) margin-left: calc(#{-1 / 2 * $button-padding-horizontal} - #{$button-border-width})
margin-right: 0.1875em margin-right: $button-padding-horizontal / 4
&:last-child:not(:first-child) &:last-child:not(:first-child)
margin-left: 0.1875em margin-left: $button-padding-horizontal / 4
margin-right: calc(-0.375em - #{$button-border-width}) margin-right: calc(#{-1 / 2 * $button-padding-horizontal} - #{$button-border-width})
&:first-child:last-child &:first-child:last-child
margin-left: calc(-0.375em - #{$button-border-width}) margin-left: calc(#{-1 / 2 * $button-padding-horizontal} - #{$button-border-width})
margin-right: calc(-0.375em - #{$button-border-width}) margin-right: calc(#{-1 / 2 * $button-padding-horizontal} - #{$button-border-width})
// States // States
&:hover, &:hover,
&.is-hovered &.is-hovered