1
0
Fork 0
blog/src/components/Post/PostActions.module.scss

97 lines
1.6 KiB
SCSS
Raw Normal View History

2018-08-29 19:44:31 +02:00
@import 'variables';
2018-11-18 23:11:36 +01:00
@import 'mixins';
2018-08-29 19:44:31 +02:00
.actions {
2019-10-02 13:35:50 +02:00
@include breakoutviewport;
2018-11-18 23:11:36 +01:00
2019-10-02 13:35:50 +02:00
margin-top: $spacer * 3;
background: rgba(#fff, 0.5);
padding-top: $spacer;
padding-bottom: $spacer;
border-radius: $border-radius;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
2018-11-18 23:11:36 +01:00
2019-10-02 13:35:50 +02:00
@media (min-width: $screen-md) {
margin-left: -100%;
margin-right: -18%;
padding-left: 80%;
}
2018-11-19 00:45:46 +01:00
2019-10-02 13:35:50 +02:00
> div {
flex: 0 0 100%;
border-bottom: 1px dashed rgba($brand-grey-light, 0.3);
2018-11-18 23:11:36 +01:00
2019-10-02 13:35:50 +02:00
&:last-child {
border-bottom: 0;
}
2018-08-29 19:44:31 +02:00
2019-10-02 13:35:50 +02:00
@media (min-width: $screen-sm) {
flex: 0 0 33.33333%;
border-bottom: 0;
border-left: 1px dashed rgba($brand-grey-light, 0.3);
2018-11-18 23:11:36 +01:00
2019-10-02 13:35:50 +02:00
&:first-child {
border-left: 0;
}
2018-08-29 19:44:31 +02:00
}
2019-10-02 13:35:50 +02:00
}
2018-08-29 19:44:31 +02:00
}
2018-10-14 13:59:18 +02:00
.link {
2019-10-02 13:35:50 +02:00
transition: 0.2s ease-out;
color: $link-color;
2018-10-14 13:59:18 +02:00
}
.actionTitle {
2019-10-02 13:35:50 +02:00
font-size: $font-size-base;
color: $text-color;
margin-top: 0;
margin-bottom: $spacer / 4;
transition: color 0.2s ease-out;
2018-10-14 13:59:18 +02:00
}
.actionText {
2019-10-02 13:35:50 +02:00
font-size: $font-size-small;
color: $brand-grey-light;
margin-bottom: 0;
transition: color 0.2s ease-out;
2018-10-14 13:59:18 +02:00
}
2018-08-29 19:44:31 +02:00
.action {
2019-10-02 13:35:50 +02:00
display: block;
margin: 0;
padding-top: $spacer;
padding-bottom: $spacer;
padding-left: $spacer * 2;
padding-right: $spacer;
position: relative;
text-align: left;
2018-08-29 19:44:31 +02:00
2019-10-02 13:35:50 +02:00
&:hover,
&:focus {
.link,
.actionTitle,
.actionText {
color: $link-color-hover;
2018-10-14 13:59:18 +02:00
}
2019-10-02 13:35:50 +02:00
}
2018-10-14 13:59:18 +02:00
2019-10-02 13:35:50 +02:00
&:active {
.link,
.actionTitle,
.actionText {
transition: none;
color: $link-color-active;
2018-10-14 13:59:18 +02:00
}
2019-10-02 13:35:50 +02:00
}
2018-10-14 13:59:18 +02:00
2019-10-02 13:35:50 +02:00
svg {
position: absolute;
left: $spacer;
top: $spacer;
fill: $brand-grey-light;
}
2018-08-29 19:44:31 +02:00
}