mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
Create app namespace for all absolute requires of app modules. Move all packages under packages yarn workspace
This commit is contained in:
98
packages/app/pages/rules/rules.scss
Normal file
98
packages/app/pages/rules/rules.scss
Normal file
@@ -0,0 +1,98 @@
|
||||
@import '~app/components/ui/colors.scss';
|
||||
@import '~app/components/ui/fonts.scss';
|
||||
|
||||
.rules {
|
||||
max-width: 500px;
|
||||
margin: 30px auto 0;
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
.rulesSection {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.rulesSectionTitle {
|
||||
line-height: 50px;
|
||||
|
||||
font-family: $font-family-title;
|
||||
font-size: 20px;
|
||||
color: #fff;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
|
||||
background: $blue;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
}
|
||||
|
||||
.rulesList {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.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;
|
||||
|
||||
&:hover {
|
||||
border-bottom-color: #444;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.footer {
|
||||
text-align: center;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
Reference in New Issue
Block a user