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

167 lines
3.0 KiB
SCSS
Raw Permalink Normal View History

2020-04-21 10:50:26 +02:00
.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;
}
2021-02-09 22:16:02 +01:00
.is-boxed {
border: 1px solid #ddd;
padding: 1em;
margin: 1em 0;
}
2020-04-21 10:50:26 +02:00
.nobold {
font-weight: normal;
}
2020-11-03 15:44:08 +01:00
.hidden {
display: none;
}
2021-02-04 09:23:15 +01:00
.padded {
padding: 1em;
}
2021-05-03 14:54:32 +02:00
.marged {
margin: 1em;
}
2022-02-09 12:25:08 +01:00
.marged-right {
margin-right: 1em;
}
.marged-v {
margin-top: 1em;
margin-bottom: 1em;
}
2021-11-19 15:25:54 +01:00
.marged-auto {
margin: 0 auto;
}
2021-12-01 18:22:21 +01:00
.fixed-box {
2021-12-09 15:27:36 +01:00
box-sizing: border-box;
2021-12-01 18:22:21 +01:00
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 10;
}
.rounded-block {
border-radius: 8px;
2022-02-04 15:09:48 +01:00
background: $d-blue30;
padding: 1em;
2022-03-01 12:02:18 +01:00
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-color: transparent;
}
.has-no-outline,
.has-no-border {
border: none;
}
2021-12-17 12:13:34 +01:00
.has-no-padding {
padding: 0;
}
2022-03-01 11:49:42 +01:00
// filters made with https://codepen.io/sosuke/pen/Pjoqqp
2022-03-01 11:49:42 +01:00
.is-filtered-icon-primary {
filter: invert(48%) sepia(68%) saturate(6489%) hue-rotate(233deg) brightness(89%) contrast(81%);
}
.is-filtered-icon-YES {
filter: invert(43%) sepia(49%) saturate(633%) hue-rotate(97deg) brightness(84%) contrast(99%);
}
.is-filtered-icon-MAYBE {
filter: invert(35%) sepia(83%) saturate(423%) hue-rotate(5deg) brightness(95%) contrast(89%);
}
.is-filtered-icon-NO {
filter: invert(21%) sepia(89%) saturate(2445%) hue-rotate(334deg) brightness(85%) contrast(104%);
}
2022-03-01 11:49:42 +01:00
.is-large-button {
width: 100%;
display: block;
}
.has-no-padd-left {
padding-left: 0;
}
.has-background-icon-left {
padding-left: 44px;
&:hover {
color: $secondary_color;
}
2022-03-01 11:49:42 +01:00
}
.has-background-icon-right {
padding-right: 44px;
background-position: right;
&:hover {
color: $secondary_color;
}
}
2022-03-01 11:49:42 +01:00
// icone bg
.has-background-transparent {
background-color: transparent;
}
.has-background-answer-YES {
background: url('/assets/icons/advanced/yes.svg') no-repeat 28px center;
}
.has-background-answer-MAYBE {
background: url('/assets/icons/advanced/maybe.svg') no-repeat 28px center;
}
.has-background-answer-NO {
background: url('/assets/icons/advanced/no.svg') no-repeat 28px center;
}
.has-background-link-icon {
background: url('/assets/icons/link.svg') no-repeat 16px center;
}
2022-03-14 17:02:56 +01:00
.has-background-edit {
background: url('/assets/icons/edit.svg') no-repeat 16px center;
}
2022-03-01 11:49:42 +01:00
.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;
2022-03-01 11:49:42 +01:00
}
.has-background-menu {
background: url('/assets/icons/menu.svg') no-repeat 16px center;
}
.has-background-close {
background: url('/assets/icons/x.svg') no-repeat 16px center;
}
.has-background-arrow-down-circle {
background: url('/assets/icons/arrow-down-circle.svg') no-repeat 16px center;
}
2022-03-10 11:06:18 +01:00
.is-block {
display: block;
}
2022-03-14 17:02:56 +01:00
.has-nopadbottom {
padding-bottom: 0;
}