demarches-normaliennes/app/assets/stylesheets/new_design/card.scss

108 lines
1.8 KiB
SCSS
Raw Normal View History

2017-07-06 15:49:29 +02:00
@import "colors";
@import "constants";
.card {
padding: ($default-spacer * 3) ($default-spacer * 2);
border: 1px solid $border-grey;
margin-bottom: $default-spacer * 2;
background: #FFFFFF;
2017-07-06 15:49:29 +02:00
2018-06-26 17:00:01 +02:00
.card-title {
font-weight: bold;
font-size: 20px;
margin-bottom: $default-spacer * 2;
}
2017-07-06 15:49:29 +02:00
&.featured {
border-top: 8px solid $blue;
.card-title {
color: $blue;
}
}
&.warning {
border-top: 8px solid $orange;
.card-title {
color: $orange;
}
}
2018-06-26 17:00:01 +02:00
&.feedback {
max-width: 600px;
margin: 30px auto;
padding: ($default-spacer * 2) ($default-spacer * 4);
font-size: small;
border: 1px dashed $border-grey;
background: $light-yellow;
.card-title {
margin-bottom: $default-spacer;
}
b {
font-weight: bold;
}
2017-07-06 15:49:29 +02:00
}
2019-02-21 16:23:03 +01:00
ul {
list-style-type: disc;
list-style-position: inside;
padding-left: $default-padding;
}
ol {
list-style-type: decimal;
list-style-position: inside;
padding-left: $default-padding;
}
2019-02-21 16:23:03 +01:00
p:not(:last-of-type) {
margin-bottom: $default-spacer;
}
2017-07-06 15:49:29 +02:00
}
.card-admin-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(236px, 1fr));
grid-gap: 20px;
margin: auto;
margin-bottom: 20px;
}
.card-admin {
padding-top: 10px;
padding-bottom: 10px;
width: 236px;
height: 200px;
border-radius: 4px;
border: solid 1px $border-grey;
text-align: center;
margin: auto;
display: flex;
flex-direction: column;
.card-admin-status-accept {
color: #50AA75;
}
.card-admin-status-todo {
color: #246AC5;
}
.card-admin-title {
font-weight: bold;
font-size: 18px;
margin-bottom: $default-spacer;
}
.card-admin-subtitle {
font-size: 14px;
}
.card-admin-action {
margin-top: auto;
}
}