-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
a4-comments: add scss file for styling and correcting some default st…
…yling
- Loading branch information
1 parent
7e18c60
commit 2edc27c
Showing
3 changed files
with
397 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,389 @@ | ||
.a4-comments__textarea--big, | ||
.a4-comments__textarea--small { | ||
width: 100%; | ||
overflow: hidden; | ||
max-height: 400px; | ||
min-height: 100px; | ||
} | ||
|
||
//comments and debate comments have different sized text boxes | ||
.a4-comments__textarea--big { | ||
min-height: 100px; | ||
} | ||
|
||
.a4-comments__textarea--small { | ||
min-height: 46px; | ||
} | ||
|
||
.a4-comments__comment { | ||
// border-top: solid 1px $gray-lightest; | ||
padding: 1.5*$spacer 0 $spacer 0; | ||
} | ||
|
||
.a4-comments__box--left { | ||
padding-left: 0; | ||
|
||
@extend .col-md-2; | ||
} | ||
|
||
.a4-comments__box--right { | ||
// border-left: 1px solid $gray-lightest; | ||
padding-right: 0; | ||
|
||
@extend .col-md-10; | ||
} | ||
|
||
.a4-comments__filters__parent { | ||
margin: 1.5*$spacer 0 1.5*$spacer 0; | ||
|
||
// button { | ||
// @extend .btn--light; | ||
// } | ||
} | ||
|
||
.a4-comments__filters__btn { | ||
.fa-check { | ||
font-size: $font-size-small; | ||
padding-top: inherit; | ||
} | ||
} | ||
|
||
.a4-comments__dropdown { | ||
align-content: flex-end; | ||
} | ||
|
||
.a4-comments__filters__search { | ||
margin-bottom: 0.5*$spacer; | ||
|
||
@media screen and (min-width: $screen-md-min) { | ||
margin-bottom: 0; | ||
} | ||
} | ||
|
||
.a4-comments__filters__search-input { | ||
font-size: $font-size-small; | ||
|
||
@media screen and (min-width: $screen-xs-min) { | ||
font-size: $font-size-base; | ||
} | ||
} | ||
|
||
.a4-comments__submit-input { | ||
@extend .submit-button; | ||
} | ||
|
||
.a4-comments__filters__search-result { | ||
position: absolute; | ||
right: 70px; | ||
top: 10px; | ||
} | ||
|
||
.a4-comments__action-bar { | ||
padding: 0.5*$spacer 0; | ||
display: contents; | ||
justify-content: space-between; | ||
} | ||
|
||
.a4-comments__action-bar__btn { | ||
margin-left: 0.2*$spacer !important; | ||
|
||
// @extend .btn--small; | ||
} | ||
|
||
.a4-comments__border--highlighted { | ||
border-left: 2px solid $brand-primary; | ||
} | ||
|
||
.a4-comments__text, | ||
.a4-comments__author { | ||
overflow-wrap: break-word; | ||
white-space: pre-wrap; | ||
} | ||
|
||
.a4-comments__submission-date { | ||
font-style: italic; | ||
} | ||
|
||
.a4-comments__owner { | ||
// background-color: $bg-light; | ||
// border-top: solid 0.5rem $bg-light; | ||
} | ||
|
||
.a4-comments__anchor { | ||
display: block; | ||
position: relative; | ||
top: -100px; | ||
visibility: hidden; | ||
height: 1px; | ||
} | ||
|
||
.a4-comments__author { | ||
display: inline-block; | ||
margin: 0 (0.25*$spacer) 0 0; | ||
} | ||
|
||
.a4-comments__moderator { | ||
font-size: $font-size-sm; | ||
font-style: italic; | ||
// color: $gray-two; | ||
} | ||
|
||
.a4-comments__child--list { | ||
// border-left: solid 1px $gray-lightest; | ||
margin: 0 0 $spacer (-$spacer); | ||
|
||
@media screen and (min-width: $screen-md-min) { | ||
margin: 0 0 2.5*$spacer 2.5*$spacer; | ||
} | ||
|
||
form { | ||
padding-top: $spacer; | ||
// border-top: solid 1px $gray-lightest; | ||
} | ||
|
||
.a4-comments__box--left { | ||
text-align: right; | ||
|
||
@extend .col-md-12; | ||
} | ||
|
||
.a4-comments__box--right { | ||
border-left: none; | ||
|
||
@extend .col-12; | ||
} | ||
|
||
.a4-comments__text { | ||
margin-top: $spacer; | ||
} | ||
} | ||
|
||
//categories and category badges | ||
.a4-comments__category__input { | ||
position: absolute; | ||
width: 1px; | ||
height: 1px; | ||
padding: 0; | ||
overflow: hidden; | ||
clip: rect(0, 0, 0, 0); | ||
white-space: nowrap; | ||
border: 0; | ||
} | ||
|
||
.a4-comments__category__row { | ||
input[type="checkbox"] + span:before { | ||
font-family: 'Font Awesome\ 5 Free', sans-serif; | ||
font-weight: 900; | ||
font-size: $font-size-small; | ||
content: '\f067'; // plus | ||
} | ||
|
||
input[type="checkbox"]:checked + span:before { | ||
content: '\f00c'; // tick | ||
} | ||
} | ||
|
||
.a4-comments__category__text, | ||
.a4-comments__badge { | ||
// background-color: $gray-lightest; | ||
border-radius: 1rem; | ||
text-decoration: none; | ||
text-transform: uppercase; | ||
// font-size: $font-size-sm; | ||
// font-weight: $font-weight-normal; | ||
// font-family: $font-family-sans-serif; | ||
padding: 0.3*$spacer 0.5*$spacer; | ||
margin: 0.5*$spacer 0.5*$spacer 0.5*$spacer 0; | ||
} | ||
|
||
.a4-comments__category { | ||
display: inline-block; | ||
} | ||
|
||
// .a4-comments__badge { | ||
// color: $gray-light; | ||
// } | ||
// | ||
// .a4-comments__category__input:checked { | ||
// + .a4-comments__category__que { | ||
// background-color: $blue-light; | ||
// } | ||
// | ||
// + .a4-comments__category__not { | ||
// background-color: $purple-light; | ||
// } | ||
// | ||
// + .a4-comments__category__sug { | ||
// background-color: $green-light; | ||
// } | ||
// } | ||
// | ||
// .a4-comments__badge--que { | ||
// background-color: $blue-light; | ||
// } | ||
// | ||
// .a4-comments__badge--not { | ||
// background-color: $purple-light; | ||
// } | ||
// | ||
// .a4-comments__badge--sug { | ||
// background-color: $green-light; | ||
// } | ||
|
||
.a4-comments__text--highlighted { | ||
border-left: solid 2px $brand-primary; | ||
padding-left: 0.5*$spacer; | ||
} | ||
|
||
.modal-url-bar-button.active, | ||
.modal-url-bar-button.active:hover { | ||
background-color: $brand-success; | ||
} | ||
|
||
|
||
//old styling | ||
.a4-comments-box { | ||
margin: 0 134px 0 134px; | ||
padding-top: 35px; | ||
|
||
& .a4-comments_login { | ||
margin-top: 30px; | ||
} | ||
|
||
& textarea { | ||
border: 1px solid $gray; | ||
border-radius: 0; | ||
font-size: 14px; | ||
} | ||
|
||
& textarea:focus { | ||
border-radius: 0; | ||
font-size: 14px; | ||
} | ||
|
||
@media (max-width: $screen-sm-min) { | ||
margin: 0; | ||
} | ||
} | ||
|
||
.a4-comments { | ||
margin-bottom: 50px; | ||
@include clearfix; | ||
|
||
.a4-comments-author { | ||
color: $black; | ||
font-family: $font-family-sans-serif; | ||
text-align: justify; | ||
font-weight: bold; | ||
display: inline-block; | ||
font-size: $font-size-base; | ||
|
||
a { | ||
vertical-align: bottom; | ||
} | ||
|
||
span { | ||
margin-left: 10px; | ||
} | ||
} | ||
|
||
& .a4-comments-deleted-author { | ||
display: inline-block; | ||
color: $gray; | ||
font-family: $font-family-sans-serif; | ||
text-align: justify; | ||
font-size: $font-size-base; | ||
} | ||
|
||
.a4-comments-text { | ||
font-family: $font-family-sans-serif; | ||
font-size: $font-size-base; | ||
line-height: 1.6; | ||
margin-bottom: 10px; | ||
color: $black; | ||
white-space: pre-line; | ||
} | ||
|
||
& .a4-comments-child-list { | ||
margin: 0 40px 0 40px; | ||
} | ||
|
||
& .a4-comments-answer-button { | ||
float: left; | ||
|
||
padding: 7px 14px; | ||
@include button-hover-background($brand-primary); | ||
} | ||
|
||
& .a4-comments-reply-button { | ||
font-weight: bold; | ||
|
||
i { | ||
margin-right: .5em; | ||
} | ||
} | ||
|
||
& .general-form { | ||
margin-bottom: 88px; | ||
} | ||
|
||
& .navbar-right { | ||
margin-right: 0; | ||
} | ||
|
||
& .navbar-default { | ||
background-color: transparent; | ||
border: none; | ||
} | ||
|
||
& .navbar { | ||
min-height: initial; | ||
margin-bottom: 0; | ||
} | ||
|
||
& .nav { | ||
padding: 0; | ||
|
||
& .dropdown li a, | ||
& .dropdown li button { | ||
padding: 10px; | ||
margin: 0; | ||
|
||
font-family: $font-family-sans-serif; | ||
font-size: 14px; | ||
line-height: 1.6; | ||
text-align: center; | ||
font-weight: bold; | ||
} | ||
|
||
& .open a, | ||
& .open a:hover, | ||
& .open a:focus { | ||
background-color: transparent; | ||
} | ||
|
||
& a.active { | ||
color: $gray-dark; | ||
} | ||
} | ||
|
||
& .action-bar { | ||
margin-bottom: 10px; | ||
|
||
& .rating { | ||
float: left; | ||
} | ||
} | ||
|
||
& .rating { | ||
float: left; | ||
} | ||
} | ||
|
||
.a4-comments-submission-date { | ||
margin-left: 10px; | ||
display: inline-block; | ||
margin-right: 5px; | ||
vertical-align: baseline; | ||
font-size: $font-size-small; | ||
} |
Oops, something went wrong.