wp-discourse/css/comments.css
2018-10-24 17:32:12 -07:00

310 lines
4.5 KiB
CSS
Vendored

/* Optional CSS for fixing oneboxes and quotes. */
aside.onebox {
border: 5px solid #e9e9e9;
margin-bottom: 1em;
padding: 12px 25px 12px 12px;
font-size: 1em;
}
aside.onebox .site-icon {
width: 16px;
height: 16px;
margin-right: 3px;
}
aside.onebox .onebox-body .onebox-avatar {
max-height: none;
max-width: none;
height: 60px;
width: 60px;
margin-right: 10px;
float: left;
}
.aspect-image {
max-width: 20%;
min-height: 60px;
max-height: 170px;
height: auto;
width: auto;
margin-right: 10px;
float: left;
clear: both;
}
.aspect-image:after {
content: "";
display: table;
clear: both;
}
aside.onebox .onebox-body img {
width: 100%;
height: auto;
}
aside.onebox header a[href] {
color: #919191;
text-decoration: none;
}
aside.onebox .onebox-body h3, aside.onebox .onebox-body h4 {
font-size: 1em;
max-width: calc(80% - 10px);
margin: 0 0 10px 0;
float: left;
clear: none;
padding-top: 0;
}
aside.onebox .onebox-body a[href] {
color: #08c;
text-decoration: none;
}
aside.onebox .onebox-body p,
.onebox-body .tweet {
float: left;
max-width: calc(80% - 20px);
clear: none;
}
article.onebox-body:after {
content: "";
display: table;
clear: both;
}
/* Twitter. */
.onebox-body .tweet, .onebox-body .tweet + .date {
float: left;
}
/* Quotes. */
.comment-body .quote .title {
border-left: 5px solid #e9e9e9;
background-color: #f9f9f9;
color: #646464;
padding: 12px 12px 1px 12px;
}
.comment-body .quote blockquote {
border-left: 5px solid #e9e9e9;
background-color: #f9f9f9;
font-size: 1em;
padding: 12px 12px 12px 12px;
margin-left: 0;
clear: both;
}
.comment-body aside.quote .title .avatar {
margin-right: 7px;
}
.comment-body .quote .title a {
color: #08c;
}
.comment-body .quote .title a .badge-category {
color: #222;
}
span.badge-category-bg {
width: 9px;
height: 9px;
display: inline-block;
margin-right: 5px;
margin-left: 5px;
}
.wpdc-poll-link {
display: block;
}
.topic-map {
margin: 20px 0;
background: #f9f9f9;
border: 1px solid #e9e9e9;
border-top: none;
}
.map:first-of-type {
display: flex;
}
.topic-map section {
border-top: 1px solid #e9e9e9;
}
.map:first-of-type .buttons {
margin-left: auto;
order: 15;
}
.topic-map .buttons {
float: right;
}
.topic-map ul {
margin: 0;
list-style: none;
}
ul,
dd {
padding: 0;
}
.map:first-of-type .buttons .btn {
height: 100%;
}
.topic-map .buttons .btn {
border: 0;
padding: 0 23px;
color: #919191;
background: #f9f9f9;
border-left: 1px solid #e9e9e9;
border-top: 1px solid transparent;
}
.btn {
font-weight: normal;
display: inline-block;
margin: 0;
font-size: 1em;
line-height: 1.2;
text-align: center;
cursor: pointer;
transition: all 0.25s;
}
.topic-map .buttons .btn .fa {
margin: 0;
font-size: 1.3195em;
line-height: 52px;
color: #646464;
opacity: 0.7;
}
.topic-map .map li {
float: left;
padding: 7px 10px;
}
.topic-map h4 {
margin: 1px 0 2px 0;
color: #919191;
font-weight: normal;
font-size: .8706em;
line-height: 1;
padding-top: 0;
}
.topic-map .map .topic-map-post {
margin-top: 6px;
}
.topic-map .map a,
.topic-map .map .number {
line-height: 1.4;
color: #08c;
text-decoration: none;
cursor: pointer;
}
span.relative-date {
white-space: nowrap;
}
.topic-map .avatar {
float: left;
margin-right: 4px;
border-radius: 50%;
vertical-align: middle;
border: 0;
}
.topic-map .map .secondary {
text-align: center;
}
.topic-map .map .number,
.topic-map .map i {
color: #646464;
font-size: 1.3195em;
line-height: 1.2;
}
.topic-map .map-expanded {
display: none;
padding: 2px 10px 8px;
}
.topic-map .topic-map-span {
display: block;
padding: 4px 0px 4px;
}
.topic-map .map-expanded p img {
margin-right: 8px;
}
.topic-map .popular-link {
display: block;
padding: 4px;
}
.topic-map .popular-links-p {
font-size: 12px;
}
/* Adding responsiveness to the topic-map (Can't find the issue with the styles) */
@media screen and (max-width:933px) {
.topic-map .map li:last-child{
clear: left;
}
}
@media screen and (max-width:847px) {
.topic-map .map li:nth-child(4){
clear: left;
}
.topic-map .map li:last-child{
clear: none;
}
}
@media screen and (max-width:767px) {
.topic-map .map li:nth-child(4){
clear: none;
}
}
@media screen and (max-width:591px) {
.topic-map .map li:last-child{
clear: left;
}
}
@media screen and (max-width:538px) {
.topic-map .map li:nth-child(4){
clear: left;
}
.topic-map .map li:last-child{
clear: none;
}
}
@media screen and (max-width:427px) {
.topic-map .map li:nth-child(3){
clear: left;
}
.topic-map .map li:nth-child(4){
clear: none;
}
}