demarches-normaliennes/app/assets/stylesheets/labels.scss

72 lines
1.2 KiB
SCSS
Raw Normal View History

2017-07-03 16:29:29 +02:00
@import "colors";
@import "constants";
.label {
display: inline-block;
padding: 4px $default-spacer;
2020-06-11 14:33:15 +02:00
background: $dark-grey;
2017-07-27 14:53:18 +02:00
border: 1px solid transparent;
2017-07-03 16:29:29 +02:00
color: #FFFFFF;
border-radius: 4px;
font-size: 12px;
line-height: 18px;
2017-07-27 14:53:18 +02:00
&.instruction {
background-color: #FFFFFF;
color: $blue;
border: 1px solid $blue;
}
&.en-instruction {
@extend .instruction;
}
2017-07-27 14:53:18 +02:00
&.construction {
background-color: #FFFFFF;
color: $black;
border: 1px solid $black;
}
&.en-construction {
@extend .construction;
}
&.accepted {
2017-07-27 14:53:18 +02:00
background-color: $green;
}
&.accepte {
@extend .accepted;
}
2017-07-27 14:53:18 +02:00
&.refused {
background-color: $dark-red;
}
&.refuse {
@extend .refused;
}
2017-07-27 14:53:18 +02:00
&.without-continuation {
background-color: $black;
}
&.sans-suite {
@extend .without-continuation;
}
2017-07-03 16:29:29 +02:00
}
// Labels that we only want for screen readers
// https://www.coolfields.co.uk/2016/05/text-for-screen-readers-only-updated/
.screen-reader-text {
border: none;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
margin: -1px;
width: 1px;
overflow: hidden;
position: absolute !important;
word-wrap: normal !important;
}