ETHReport/components/wordCloud/style.scss

156 lines
2.8 KiB
SCSS

@import './assets/styles/global.scss';
.wordcloud {
padding: calculateRem(32) 0 calculateRem(40);
outline: none;
background-color: $navy;
display: flex;
flex-direction: column;
@media (min-width: $smallMobile) {
padding-left: calculateRem(24);
}
@media (min-width: $tablet) {
padding-top: calculateRem(48);
padding-left: calculateRem(48);
}
.wordcloud-header {
padding-left: calculateRem(20);
@media (min-width: $smallMobile) {
padding-left: 0;
}
}
h3 {
@include hasRedUnderline;
position: relative;
margin: calculateRem(-24) 0 calculateRem(48) calculateRem(48);
color: #fff;
font-family: $secondary-font;
font-size: calculateRem(22);
line-height: 1;
letter-spacing: 2px;
padding-right: calculateRem(24);
transition: font-size 0.2s ease;
@media (min-width: $tablet) {
font-size: calculateRem(38);
margin-bottom: calculateRem(60);
}
&::before {
z-index: 0;
bottom: calculateRem(-8);
}
br {
@media (max-width: $toTablet) {
display: none;
}
}
}
p {
font-family: $secondary-font;
color: $blue-light;
font-size: calculateRem(100);
line-height: 0.8;
}
.words-wrap {
display: flex;
flex-direction: column;
justify-content: center;
flex-grow: 1;
text-align: center;
@media (min-width: $smallMobile) {
padding-right: calculateRem(24);
}
@media (min-width: $tablet) {
padding-right: calculateRem(48);
}
> div > span {
display: inline-block;
line-height: 1.2;
padding: calculateRem(4) calculateRem(12);
transform: scale(1);
transition: transform 0.2s ease-in-out;
&:hover {
transform: scale(1.05);
}
&.size-1 {
font-size: calculateRem(30);
> span:hover,
> a:hover {
color: $red;
}
}
&.size-2 {
font-size: calculateRem(25);
> span:hover,
> a:hover {
color: $orange;
}
}
&.size-3 {
font-size: calculateRem(20);
> span:hover,
> a:hover {
color: $turquoise;
}
}
&.size-4 {
font-size: calculateRem(15);
> span:hover,
> a:hover {
color: #fff;
}
}
> span,
> a {
color: $text-color;
transition: color 0.2s ease;
&:hover {
color: $red;
text-shadow: 0 0 11px #000;
}
}
> a {
text-decoration: none;
@media (max-width: $toDesktop) {
@include hasRedUnderline;
position: relative;
&::before {
background-color: $orange;
}
}
&:hover {
text-decoration: underline;
}
}
}
}
}