2019-11-27 14:33:32 +05:30
|
|
|
@import '~components/ui/colors.scss';
|
|
|
|
@import '~components/ui/fonts.scss';
|
2016-05-23 23:22:05 +05:30
|
|
|
|
2016-05-22 21:26:52 +05:30
|
|
|
.rules {
|
2019-11-27 14:33:32 +05:30
|
|
|
max-width: 500px;
|
|
|
|
margin: 30px auto 0;
|
|
|
|
padding: 0 20px;
|
2016-05-22 21:26:52 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.rulesSection {
|
2019-11-27 14:33:32 +05:30
|
|
|
margin-bottom: 30px;
|
2016-05-22 21:26:52 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.rulesSectionTitle {
|
2019-11-27 14:33:32 +05:30
|
|
|
line-height: 50px;
|
2016-05-22 21:26:52 +05:30
|
|
|
|
2019-11-27 14:33:32 +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
|
|
|
|
2019-11-27 14:33:32 +05:30
|
|
|
background: $blue;
|
2016-05-22 21:26:52 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.rulesBody {
|
2019-11-27 14:33:32 +05:30
|
|
|
position: relative;
|
|
|
|
// z-index, чтобы положить :before ниже текста, но выше фона блока
|
|
|
|
z-index: 0;
|
2016-05-31 15:00:41 +05:30
|
|
|
|
2019-11-27 14:33:32 +05:30
|
|
|
padding: 20px;
|
|
|
|
background: #fff;
|
|
|
|
font-size: 14px;
|
2016-05-23 23:22:05 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
%rulesTextFormat {
|
2019-11-27 14:33:32 +05:30
|
|
|
line-height: 1.4;
|
|
|
|
margin-bottom: 10px;
|
2016-05-23 23:22:05 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.blockDescription {
|
2019-11-27 14:33:32 +05:30
|
|
|
@extend %rulesTextFormat;
|
2016-05-23 23:22:05 +05:30
|
|
|
|
2019-11-27 14:33:32 +05:30
|
|
|
p {
|
|
|
|
@extend %rulesTextFormat;
|
|
|
|
}
|
2016-05-22 21:26:52 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.rulesList {
|
2019-11-27 14:33:32 +05:30
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
padding-left: 20px;
|
2016-05-22 21:26:52 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.rulesItem {
|
2019-11-27 14:33:32 +05:30
|
|
|
@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;
|
2016-05-31 15:00:41 +05:30
|
|
|
}
|
2019-11-27 14:33:32 +05:30
|
|
|
}
|
2016-05-31 15:00:41 +05:30
|
|
|
|
2019-11-27 14:33:32 +05:30
|
|
|
a {
|
|
|
|
color: #444;
|
|
|
|
border-bottom-color: #aaa;
|
2016-05-22 21:26:52 +05:30
|
|
|
|
2019-11-27 14:33:32 +05:30
|
|
|
&:hover {
|
|
|
|
border-bottom-color: #444;
|
2016-05-22 21:26:52 +05:30
|
|
|
}
|
2019-11-27 14:33:32 +05:30
|
|
|
}
|
2016-05-22 21:26:52 +05:30
|
|
|
}
|
2016-05-23 23:22:05 +05:30
|
|
|
|
|
|
|
.footer {
|
2019-11-27 14:33:32 +05:30
|
|
|
text-align: center;
|
|
|
|
margin-bottom: 20px;
|
2016-05-23 23:22:05 +05:30
|
|
|
}
|