site-accueil-insa/assets/css/baguette.css

98 lines
1.6 KiB
CSS
Raw Normal View History

#baguette {
2018-03-25 13:22:28 +02:00
display: inline-block;
2018-04-24 00:15:37 +02:00
position: relative;
2018-03-25 13:22:28 +02:00
cursor: pointer;
font-size: 32px;
margin: 5px;
2018-04-24 00:15:37 +02:00
height: 40px;
width: 40px;
2018-05-23 17:10:39 +02:00
pointer-events: auto;
2018-03-25 13:22:28 +02:00
}
2019-06-13 17:11:25 +02:00
#shaft, #star1, #star2, #star3, #star4 {
2018-04-24 00:15:37 +02:00
position: absolute;
2019-06-13 17:11:25 +02:00
width: 100%;
2018-03-25 13:22:28 +02:00
height: 5px;
background-color: #fff;
2018-04-24 00:15:37 +02:00
margin: 5px 0;
transition: 0.3s;
2018-03-25 13:22:28 +02:00
}
2019-06-13 17:11:25 +02:00
#shaft {
margin: 0;
top: 50%;
transform: translateY(-50%);
2018-04-24 00:15:37 +02:00
}
2019-06-13 17:11:25 +02:00
#star1, #star2 {
width: 20px;
top: 0;
2018-04-24 00:15:37 +02:00
}
2019-06-13 17:11:25 +02:00
#star3, #star4 {
width: 20px;
bottom: 0;
2018-04-24 00:15:37 +02:00
}
2019-06-13 17:11:25 +02:00
#star1, #star3 {
left: 0;
2018-04-24 00:15:37 +02:00
}
2019-06-13 17:11:25 +02:00
#star2, #star4 {
right: 0;
2018-04-24 00:15:37 +02:00
}
2018-03-25 13:22:28 +02:00
/* Mouse hovers the baguette */
2019-05-16 18:26:49 +02:00
2019-06-13 17:11:25 +02:00
.change-hover #shaft {
2019-06-08 13:00:46 +02:00
background-color: #e9b82f;
2019-06-17 21:57:22 +02:00
transform: translateY(1px) rotate(-45deg);
height:5px;
}
2019-06-08 13:00:46 +02:00
2019-06-13 17:11:25 +02:00
.change-hover #star1, .change-hover #star2, .change-hover #star3, .change-hover #star4 {
width: 5px;
border-radius: 100%;
2019-05-16 18:26:49 +02:00
}
2019-06-13 17:11:25 +02:00
.change-hover #star1 {
background-color: #ff5f5f;
2019-06-17 21:57:22 +02:00
transform: translate(19px,-2px);
2019-05-16 18:26:49 +02:00
}
2019-06-13 17:11:25 +02:00
.change-hover #star2 {
background-color: #7ffd78;
2019-06-17 21:57:22 +02:00
transform: translate(-3px, -6px);
}
2019-05-16 18:26:49 +02:00
2019-06-13 17:11:25 +02:00
.change-hover #star3 {
background-color: #fafd78;
2019-06-17 21:57:22 +02:00
transform: translate(36px, -10px);
2018-03-25 13:22:28 +02:00
}
2019-06-13 17:11:25 +02:00
.change-hover #star4 {
background-color: #60bdff;
2019-06-17 21:57:22 +02:00
transform: translate(5px, -22px);
2018-04-24 00:15:37 +02:00
}
2019-06-13 17:11:25 +02:00
/* Mouse clics the baguette */
2018-03-25 13:22:28 +02:00
2019-06-13 17:11:25 +02:00
.change-clic #shaft {
transform: translateY(-50%) rotate(-135deg);
background-color: #b0120b;
}
2019-06-13 17:11:25 +02:00
.change-clic #star1, .change-clic #star2, .change-clic #star3, .change-clic #star4 {
left: 0;
width: 100%;
border-radius: 0;
margin: 0;
top: 50%;
transform: translateY(-50%) rotate(-45deg);
background-color: #b0120b;
2018-03-25 13:22:28 +02:00
}