Files
force-orange-2022/src/components/Knowledge/styles.module.scss
2022-08-15 12:05:55 +02:00

303 lines
5.0 KiB
SCSS
Executable File

@import "../../theme/variables";
@import "../../theme/mixins";
.showUnknownOnlyLabel {
text-align: left;
display: inline-block;
margin-bottom: 10px;
width: 280px;
}
.boxList {
padding: 0;
list-style: none;
}
.boxItem {
padding: 10px 0;
}
.photoContainer {
height: 50px;
width: 73px;
position: relative;
display: inline-block;
vertical-align: middle;
}
.photo {
height: 50px;
max-width: 73px;
position: absolute;
left: 0;
}
.titleContainer {
height: 50px;
width: 198px;
position: relative;
display: inline-block;
vertical-align: middle;
}
.shorterTitle {
width: 168px;
}
.title {
height: 50px;
font-weight: bold;
display: flex;
align-items: center;
}
.poufpaf {
width: 30px;
height: 30px;
position: relative;
display: inline-block;
background: url("../../app/img/poufpaf.png");
background-size: contain;
vertical-align: middle;
}
.noPoufpaf {
display: none;
}
.knowledgeList {
@include clear-ul-style;
width: 266px;
display: inline-block;
text-align: center;
vertical-align: middle;
}
.knowledgeItem {
display: inline-block;
margin: 3px;
}
.knowledgeButton {
margin: 0;
padding: 7px 2px 6px;
border: 0;
border-radius: 0;
width: 60px;
text-align: center;
color: $color-grey-medium;
cursor: pointer;
&.active {
color: $color-yellow;
}
}
.unknown {
background-color: $color-unknown;
&.active {
background-color: $color-active-unknown;
}
}
.ok {
background-color: $color-ok;
&.active {
background-color: $color-active-ok;
}
}
.bof {
background-color: $color-bof;
&.active {
background-color: $color-active-bof;
}
}
.niet {
background-color: $color-niet;
&.active {
background-color: $color-active-niet;
}
}
/* Cards */
.card {
display: inline-block;
vertical-align: top;
width: 48vw;
margin: 1vw;
break-inside: avoid;
border: $color-black solid 0.1vw;
}
.header {
color: $color-white;
background-color: #e18502;
text-align: center;
font-size: 2.5vw;
line-height: 5vw;
font-family: $font-pel;
}
.imageContainer {
padding: 1vw;
}
.benevolesContainer {
width: 100%;
}
.tableBenevoles {
width: 100%;
vertical-align: top;
padding-top: 1vw;
}
.gameImage {
width: 10vw;
}
.okHeader,
.bofHeader {
text-align: center;
width: 100%;
font-size: 1.8vw;
font-weight: bold;
}
.okHeader {
background-color: #9dba5d;
}
.listOk {
text-align: center;
}
.listOk td {
padding-top: 15px;
padding-bottom: 15px;
}
.bofHeader {
background-color: #cb9902;
}
.listBof {
text-align: center;
}
.listBof td {
padding-top: 15px;
padding-bottom: 15px;
}
.nicknameContainer {
width: 100%;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-evenly;
align-content: center;
gap: 0.5vw;
}
.nickname {
flex: 1 1 auto;
white-space: nowrap;
}
.numberOfPlayersImgContainer {
width: 6.3vw;
}
.numberOfPlayersImg {
width: 6vw;
height: 4vw;
background: url("../../app/img/knowledgeCards/nombre_joueurs-fiche.png") no-repeat center center;
background-size: cover;
}
.numberOfPlayers {
font-family: $font-pel;
font-size: 1.6vw;
white-space: nowrap;
}
.durationImgContainer {
width: 6.1vw;
padding-left: 1vw;
}
.durationImg {
width: 6vw;
height: 4vw;
background: url("../../app/img/knowledgeCards/duree-fiche.png") no-repeat center center;
background-size: cover;
}
.duration {
font-family: $font-pel;
font-size: 1.6vw;
white-space: nowrap;
}
.typeImgContainer {
width: 6.2vw;
padding-left: 1.1vw;
}
.verteImg,
.orangeImg,
.rougeImg {
width: 6vw;
height: 6vw;
background-size: cover;
}
.verteImg {
background: url("../../app/img/knowledgeCards/jauge-verte.png") no-repeat center center;
}
.orangeImg {
background: url("../../app/img/knowledgeCards/jauge-orange.png") no-repeat center center;
}
.rougeImg {
background: url("../../app/img/knowledgeCards/jauge-rouge.png") no-repeat center center;
}
.type {
font-family: $font-pel;
font-size: 1.6vw;
white-space: nowrap;
}
.pppImgContainer {
width: 6vw;
padding-left: 0.7vw;
}
.pppImg {
width: 6vw;
height: 3.4vw;
background: url("../../app/img/knowledgeCards/ppp-fiche-ko-trespetit.png") no-repeat center
center;
background-size: cover;
}
.oneDayOnly {
color: $color-red;
}
.footer {
height: 3vw;
font-family: $font-pel;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: space-between;
align-content: center;
background-color: #96b397;
font-style: oblique;
}
.year {
flex: 0 1 auto;
align-self: center;
margin-left: 1vw;
font-size: 1vw;
}
.container {
flex: 0 1 auto;
align-self: center;
margin-right: 1vw;
font-size: 1.5vw;
}