1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

fixed boris contacts shadows

This commit is contained in:
Fedor Katurov 2021-09-22 15:01:43 +07:00
parent a9d5b3c7f2
commit 0ebc7f0ebf
4 changed files with 10 additions and 19 deletions

View file

@ -7,6 +7,8 @@
justify-content: stretch; justify-content: stretch;
text-decoration: none; text-decoration: none;
color: darken(white, 50%); color: darken(white, 50%);
padding: $gap;
min-height: 42px;
} }
.icon { .icon {
@ -21,9 +23,10 @@
.title { .title {
font: $font_16_semibold; font: $font_16_semibold;
line-height: 1.25em;
} }
.subtitle { .subtitle {
font: $font_12_medium; font: $font_12_medium;
opacity: 0.7; opacity: 0.5;
} }

View file

@ -6,8 +6,6 @@ interface Props {}
const BorisContacts: FC<Props> = () => ( const BorisContacts: FC<Props> = () => (
<div className={styles.contacts}> <div className={styles.contacts}>
<div className={styles.contacts__title}>Где мы ещё:</div>
<BorisContactItem <BorisContactItem
icon="vk" icon="vk"
title="Суицидальные роботы" title="Суицидальные роботы"

View file

@ -1,19 +1,10 @@
@import "~/styles/variables"; @import "~/styles/variables";
.contacts { .contacts {
display: grid; @include inner_shadow;
grid-auto-flow: row; border-radius: $radius;
grid-row-gap: $gap;
padding: 2px 2px $gap * 3 2px;
& > *:not(:last-child) { & > * {
border-bottom: 1px solid #333333; @include row_shadow;
padding-bottom: $gap * 2;
} }
} }
.contacts__title {
font: $font_12_semibold;
text-transform: uppercase;
opacity: 0.3;
}

View file

@ -95,9 +95,8 @@ $sidebar_border: transparentize(white, 0.95);
} }
@mixin row_shadow() { @mixin row_shadow() {
&:not(last-child) { &:not(:last-child) {
box-shadow: box-shadow: transparentize(white, 0.95) 0 1px,
transparentize(white, 0.95) 0 1px,
inset transparentize(black, 0.8) 0 -1px; inset transparentize(black, 0.8) 0 -1px;
} }