make DotButton content overflow & add depart styling
This commit is contained in:
@@ -12,12 +12,20 @@
|
|||||||
color: color-yiq($background);
|
color: color-yiq($background);
|
||||||
@include gradient-bg($background);
|
@include gradient-bg($background);
|
||||||
border-color: $border;
|
border-color: $border;
|
||||||
@include box-shadow($btn-box-shadow);
|
// @include box-shadow($btn-box-shadow);
|
||||||
|
@if $background == $white {
|
||||||
|
box-shadow: 3px 5px 0 $dark;
|
||||||
|
}
|
||||||
|
|
||||||
@include hover() {
|
@include hover() {
|
||||||
color: color-yiq($hover-background);
|
color: color-yiq($hover-background);
|
||||||
@include gradient-bg($hover-background);
|
@include gradient-bg($hover-background);
|
||||||
border-color: $hover-border;
|
border-color: $hover-border;
|
||||||
|
|
||||||
|
@if $background == $white {
|
||||||
|
background-color: $white;
|
||||||
|
border-color: $dark;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:focus,
|
&:focus,
|
||||||
@@ -25,6 +33,10 @@
|
|||||||
color: color-yiq($hover-background);
|
color: color-yiq($hover-background);
|
||||||
@include gradient-bg($hover-background);
|
@include gradient-bg($hover-background);
|
||||||
border-color: $hover-border;
|
border-color: $hover-border;
|
||||||
|
@if $background == $white {
|
||||||
|
background-color: $white;
|
||||||
|
border-color: $dark;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Disabled comes first so active can properly restyle
|
// Disabled comes first so active can properly restyle
|
||||||
|
|||||||
@@ -55,18 +55,44 @@ export default {
|
|||||||
|
|
||||||
&:not(.show),
|
&:not(.show),
|
||||||
&.hide {
|
&.hide {
|
||||||
min-height: 1.1875rem;
|
height: 1.1875rem;
|
||||||
min-width: 1.1875rem;
|
width: 1.1875rem;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
||||||
&.dot-btn-depart {
|
&.dot-btn-depart {
|
||||||
min-height: 1.875rem;
|
height: 1.875rem;
|
||||||
min-width: 1.875rem;
|
width: 1.875rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.hide:hover {
|
||||||
|
span {
|
||||||
|
pointer-events: none;
|
||||||
|
position: absolute;
|
||||||
|
display: block;
|
||||||
|
transform: translate(calc(-100% + 1.1875rem), -50%);
|
||||||
|
border-radius: 50rem;
|
||||||
|
padding: 0 $input-btn-padding-x;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
@each $color, $value in $theme-colors {
|
||||||
|
&.dot-btn-#{$color} {
|
||||||
|
span {
|
||||||
|
background-color: lighten($value, 15%);
|
||||||
|
}
|
||||||
|
&:active,
|
||||||
|
&.active {
|
||||||
|
span {
|
||||||
|
background-color: $value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="mode === 'view' && node.siblings && node.siblings.length">
|
<div v-if="mode === 'view' && node.siblings && node.siblings.length">
|
||||||
<b-button :id="'siblings-' + node.id">
|
<b-button :id="'siblings-' + node.id" variant="depart" class="mb-2">
|
||||||
{{ $t('siblings') }}
|
{{ $t('siblings') }}
|
||||||
</b-button>
|
</b-button>
|
||||||
|
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="mode === 'card' && preview" class="mt-2">
|
<div v-if="mode === 'card' && preview" class="mt-2">
|
||||||
<b-button @click="onOpenSelf()" variant="outline-dark" class="btn-read">
|
<b-button @click="onOpenSelf()" variant="depart" class="btn-read">
|
||||||
{{ $t('text.read') }}
|
{{ $t('text.read') }}
|
||||||
</b-button>
|
</b-button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -193,6 +193,10 @@ foreignObject {
|
|||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
|
||||||
|
&-depart {
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
h6 {
|
h6 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -231,7 +231,7 @@ export default {
|
|||||||
if (a.authors[0].last_name > b.authors[0].last_name) return 1
|
if (a.authors[0].last_name > b.authors[0].last_name) return 1
|
||||||
return 0
|
return 0
|
||||||
}).reduce((dict, text) => {
|
}).reduce((dict, text) => {
|
||||||
const firstChar = text.authors ? text.authors[0].last_name[0].toUpperCase() : 'Pas de noms'
|
const firstChar = text.authors ? text.authors[0].last_name[0].toUpperCase() : '~'
|
||||||
if (!(firstChar in dict)) dict[firstChar] = []
|
if (!(firstChar in dict)) dict[firstChar] = []
|
||||||
dict[firstChar].push(text)
|
dict[firstChar].push(text)
|
||||||
return dict
|
return dict
|
||||||
|
|||||||
Reference in New Issue
Block a user