portfolio/src/components/molecules/Networks.module.scss

73 lines
1.3 KiB
SCSS
Raw Normal View History

2018-03-27 10:01:24 +02:00
@import 'variables';
.networks {
2018-05-06 00:59:46 +02:00
margin-top: $spacer * $line-height;
2018-05-09 22:10:37 +02:00
margin-left: auto;
margin-right: auto;
2018-05-05 17:52:23 +02:00
width: 100%;
2019-11-09 19:59:10 +01:00
text-align: center;
2018-04-02 23:22:48 +02:00
display: flex;
2019-11-09 19:59:10 +01:00
flex-wrap: wrap;
2018-04-02 23:22:48 +02:00
justify-content: center;
2018-03-27 10:01:24 +02:00
}
2018-06-11 19:48:38 +02:00
.title {
2018-05-06 00:59:46 +02:00
display: block;
font-size: $font-size-mini;
color: $brand-grey-light;
opacity: 0;
2019-11-09 19:59:10 +01:00
transform: translate3d(0, 0.5rem, 0);
transition: 0.2s $easing;
2018-05-06 00:59:46 +02:00
}
2018-06-11 19:48:38 +02:00
.link {
2018-05-09 22:10:37 +02:00
margin-left: $spacer / 2;
margin-right: $spacer / 2;
2019-11-09 19:59:10 +01:00
margin-bottom: $spacer / 2;
2018-03-27 10:01:24 +02:00
text-align: center;
2018-05-06 00:59:46 +02:00
display: block;
2019-11-09 19:59:10 +01:00
flex: 0 1;
min-width: 2.5rem;
2018-04-24 21:10:47 +02:00
2018-04-16 22:32:30 +02:00
&,
2018-06-11 19:48:38 +02:00
svg {
2019-11-09 19:59:10 +01:00
transition: 0.2s $easing;
2018-04-16 22:32:30 +02:00
}
2018-06-11 19:48:38 +02:00
svg {
2018-04-16 22:32:30 +02:00
fill: $brand-grey-light;
2019-11-12 22:20:34 +01:00
width: 24px;
height: 24px;
2018-04-12 00:10:13 +02:00
}
2018-03-27 10:01:24 +02:00
&:hover,
&:focus {
2018-06-11 19:48:38 +02:00
svg {
2018-04-16 22:32:30 +02:00
fill: $brand-cyan;
}
2018-05-06 00:59:46 +02:00
2018-06-11 19:48:38 +02:00
.title {
2018-05-06 00:59:46 +02:00
opacity: 1;
transform: translate3d(0, 0, 0);
}
2018-03-27 10:01:24 +02:00
}
2018-06-11 19:48:38 +02:00
}
2018-04-11 13:53:35 +02:00
2019-04-15 00:25:54 +02:00
.small {
composes: networks;
2018-06-11 19:48:38 +02:00
.link {
2018-05-06 00:59:46 +02:00
padding: $spacer / 4;
2019-11-12 22:20:34 +01:00
margin-left: $spacer / 7;
margin-right: $spacer / 7;
2019-11-09 19:59:10 +01:00
margin-bottom: $spacer / 4;
2018-06-11 19:48:38 +02:00
}
2018-04-11 13:53:35 +02:00
2018-06-11 19:48:38 +02:00
/* stylelint-disable no-descending-specificity */
svg {
2019-11-12 22:20:34 +01:00
width: $font-size-base;
height: $font-size-base;
2019-11-09 19:59:10 +01:00
opacity: 0.8;
2018-04-11 13:53:35 +02:00
}
2018-03-27 10:01:24 +02:00
}