funky-framadate-front/src/styles/dev-utilities/_helpers.scss

137 lines
2.3 KiB
SCSS

.text-ellipsis {
text-overflow: ellipsis;
max-width: 100%;
word-break: break-all;
overflow: hidden;
display: inline-block;
}
.clickable {
cursor: pointer;
}
.boxed-shadow {
background: $white;
box-shadow: $dark-lavender 0 0 10px;
}
.is-boxed {
border: 1px solid #ddd;
padding: 1em;
margin: 1em 0;
}
.nobold {
font-weight: normal;
}
.hidden {
display: none;
}
.padded {
padding: 1em;
}
.marged {
margin: 1em;
}
.marged-right {
margin-right: 1em;
}
.marged-v {
margin-top: 1em;
margin-bottom: 1em;
}
.marged-auto {
margin: 0 auto;
}
.fixed-box {
box-sizing: border-box;
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 10;
}
.rounded-block {
border-radius: 0.25em;
background: $d-blue30;
padding: 1em;
margin-bottom: 1rem;
hr {
margin: 0.5em -1em;
background: $rules;
}
.go-to-step,
.custom-action {
@extend .clickable;
padding: 1.5em;
border-radius: 0.25em;
}
}
.has-no-background {
background: none;
}
.has-no-outline,
.has-no-border {
border: none;
}
.has-no-padding {
padding: 0;
}
// filters made with https://codepen.io/sosuke/pen/Pjoqqp
.is-filtered-icon-primary {
filter: invert(48%) sepia(68%) saturate(6489%) hue-rotate(233deg) brightness(89%) contrast(81%);
}
.is-filtered-icon-yes {
filter: invert(48%) sepia(68%) saturate(6489%) hue-rotate(233deg) brightness(89%) contrast(81%);
}
.is-filtered-icon-maybe {
filter: invert(48%) sepia(68%) saturate(6489%) hue-rotate(233deg) brightness(89%) contrast(81%);
}
.is-filtered-icon-no {
filter: invert(48%) sepia(68%) saturate(6489%) hue-rotate(233deg) brightness(89%) contrast(81%);
}
.is-large-button {
width: 100%;
display: block;
}
.has-no-padd-left {
padding-left: 0;
}
.has-background-icon-left {
padding-left: 44px;
}
// icone bg
.has-background-transparent {
background-color: transparent;
}
.has-background-answer-YES {
background: url('/assets/icons/plus-circle.svg') no-repeat 28px center;
}
.has-background-answer-MAYBE {
background: url('/assets/icons/help-circle.svg') no-repeat 28px center;
}
.has-background-answer-NO {
background: url('/assets/icons/x.svg') no-repeat 28px center;
}
.has-background-plus {
background: url('/assets/icons/plus-circle.svg') no-repeat 16px center;
}
.has-background-trash {
background: url('/assets/icons/trash-2.svg') no-repeat 16px center;
}
.is-block {
display: block;
}