accounts-frontend/packages/app/pages/rules/rules.scss

99 lines
1.5 KiB
SCSS
Raw Normal View History

@import '~app/components/ui/colors.scss';
@import '~app/components/ui/fonts.scss';
2016-05-22 21:26:52 +05:30
.rules {
max-width: 500px;
margin: 30px auto 0;
padding: 0 20px;
2016-05-22 21:26:52 +05:30
}
.rulesSection {
margin-bottom: 30px;
2016-05-22 21:26:52 +05:30
}
.rulesSectionTitle {
line-height: 50px;
2016-05-22 21:26:52 +05:30
font-family: $font-family-title;
font-size: 20px;
color: #fff;
padding: 0;
margin: 0;
text-align: center;
2016-05-22 21:26:52 +05:30
background: $blue;
2016-05-22 21:26:52 +05:30
}
.rulesBody {
position: relative;
// z-index, чтобы положить :before ниже текста, но выше фона блока
z-index: 0;
padding: 20px;
background: #fff;
font-size: 14px;
}
%rulesTextFormat {
line-height: 1.4;
margin-bottom: 10px;
}
.blockDescription {
@extend %rulesTextFormat;
p {
@extend %rulesTextFormat;
}
2016-05-22 21:26:52 +05:30
}
.rulesList {
padding: 0;
margin: 0;
padding-left: 20px;
2016-05-22 21:26:52 +05:30
}
.rulesItem {
@extend %rulesTextFormat;
list-style: decimal;
position: relative;
cursor: pointer;
&:last-of-type {
margin-bottom: 0;
}
&.target {
&:before {
cursor: default;
$border: 8px solid #ddd8ce;
content: '';
position: absolute;
top: -10px;
left: -40px;
width: calc(100% + 60px);
height: calc(100% + 20px);
background: $white;
border-left: $border;
border-right: $border;
box-sizing: border-box;
z-index: -1;
}
}
a {
color: #444;
border-bottom-color: #aaa;
2016-05-22 21:26:52 +05:30
&:hover {
border-bottom-color: #444;
2016-05-22 21:26:52 +05:30
}
}
2016-05-22 21:26:52 +05:30
}
.footer {
text-align: center;
margin-bottom: 20px;
}