mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 16:18:42 -05:00
581 lines
10 KiB
SCSS
581 lines
10 KiB
SCSS
// styles that apply to the user page
|
|
|
|
.groups {
|
|
.group-link {
|
|
color: $tertiary;
|
|
}
|
|
}
|
|
|
|
.profile-image {
|
|
height: 250px;
|
|
width: 100%;
|
|
background-size: cover;
|
|
transition: height .15s linear;
|
|
}
|
|
|
|
|
|
.no-background {
|
|
.profile-image {
|
|
height: 0;
|
|
}
|
|
|
|
}
|
|
|
|
.user-preferences {
|
|
input.category-group {
|
|
width: 500px;
|
|
}
|
|
|
|
.autocomplete .badge-category {
|
|
margin: 2px;
|
|
font-weight: normal;
|
|
}
|
|
|
|
.autocomplete .badge-category.selected {
|
|
font-weight: bold;
|
|
}
|
|
|
|
textarea {
|
|
width: 530px;
|
|
height: 100px;
|
|
}
|
|
|
|
input[type=text] {
|
|
@include small-width {
|
|
width: 450px;
|
|
}
|
|
}
|
|
|
|
#pagedown-editor {
|
|
width: 450px;
|
|
|
|
textarea {
|
|
width: 440px;
|
|
}
|
|
}
|
|
|
|
.bio-composer #wmd-quote-post {
|
|
display: none;
|
|
}
|
|
|
|
.static {
|
|
color: $primary;
|
|
display: inline-block;
|
|
}
|
|
.instructions {
|
|
color: scale-color($primary, $lightness: 50%);
|
|
margin-left: 160px;
|
|
margin-top: 5px;
|
|
margin-bottom: 10px;
|
|
font-size: 80%;
|
|
line-height: 1.4em;
|
|
}
|
|
.avatar {
|
|
margin-left: 3px;
|
|
}
|
|
.instructions a[href] {
|
|
color: $tertiary;
|
|
}
|
|
.warning {
|
|
background-color: scale-color($danger, $lightness: 30%);
|
|
padding: 5px 8px;
|
|
color: $secondary;
|
|
width: 520px;
|
|
}
|
|
|
|
.other .controls {
|
|
select {
|
|
width: 280px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.form-horizontal .control-group.other {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.form-horizontal .control-group.category {
|
|
margin-top: 18px;
|
|
}
|
|
|
|
.user-navigation {
|
|
width: 21.62%;
|
|
margin-right: 1.8018%;
|
|
float: left;
|
|
margin-top: 20px;
|
|
|
|
h3 {
|
|
color: $primary;
|
|
margin: 20px 0 10px 0;
|
|
}
|
|
|
|
}
|
|
|
|
.user-main {
|
|
margin-bottom: 50px;
|
|
|
|
table.group-members {
|
|
width: 75%;
|
|
float: right;
|
|
|
|
p {
|
|
max-width: 600px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
th.seen {
|
|
text-align: right;
|
|
}
|
|
td.avatar {
|
|
width: 60px;
|
|
}
|
|
td {
|
|
img {
|
|
margin-right: 10px;
|
|
}
|
|
span.last-seen-at {
|
|
float: right;
|
|
color: $primary;
|
|
}
|
|
}
|
|
}
|
|
|
|
.user-content {
|
|
padding: 10px 8px;
|
|
background-color: $secondary;
|
|
border: 1px solid scale-color-diff();
|
|
margin-bottom: 10px;
|
|
box-sizing: border-box;
|
|
width: 75%;
|
|
float: right;
|
|
margin-top: 20px;
|
|
|
|
.btn.right {
|
|
float: right
|
|
}
|
|
|
|
h2 {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
margin-top: 10px;
|
|
|
|
th {
|
|
text-align: left;
|
|
border-bottom: 1px solid scale-color-diff();
|
|
padding: 5px;
|
|
}
|
|
|
|
td {
|
|
padding: 5px;
|
|
border-bottom: 1px solid scale-color-diff();
|
|
}
|
|
}
|
|
}
|
|
|
|
.about {
|
|
background-size: 1110px 250px;
|
|
background-position: center center;
|
|
width: 100%;
|
|
margin-bottom: 10px;
|
|
overflow: hidden;
|
|
color: $secondary;
|
|
|
|
&.group {
|
|
width: 75%;
|
|
float: right;
|
|
margin-top: 20px;
|
|
.details {padding: 15px;}
|
|
}
|
|
|
|
.secondary {
|
|
background: dark-light-diff($primary, $secondary, 90%, -65%);
|
|
font-size: 13px;
|
|
.btn { padding: 3px 12px; }
|
|
|
|
dl dd {
|
|
display: inline;
|
|
margin: 0 15px 0 5px;
|
|
padding: 0;
|
|
}
|
|
|
|
dl dt {
|
|
display: inline-block;
|
|
}
|
|
|
|
dl {
|
|
padding: 10px 15px;
|
|
margin: 0;
|
|
}
|
|
|
|
dd {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
color: $primary;
|
|
a {
|
|
color: $primary;
|
|
}
|
|
}
|
|
|
|
dt {
|
|
color: dark-light-diff($secondary, $primary, 50%, -40%);
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.details {
|
|
padding: 15px 15px 4px 15px;
|
|
background-color: $primary;
|
|
transition: margin .15s linear;
|
|
|
|
h1 {
|
|
font-size: 30px;
|
|
font-weight: normal;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 17px;
|
|
font-weight: normal;
|
|
margin-top: 10px;
|
|
max-width: 100%;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
h3 {
|
|
font-weight: normal;
|
|
font-size: 14px;
|
|
margin: 5px 0;
|
|
i:not(:first-of-type) {
|
|
margin-left: 10px;
|
|
}
|
|
}
|
|
|
|
.groups {
|
|
margin-left: 10px;
|
|
display: inline;
|
|
}
|
|
|
|
img.avatar {
|
|
margin: 0 20px 10px 0;
|
|
float: left;
|
|
transition: all .1s linear;
|
|
}
|
|
|
|
.suspended {
|
|
color: $danger;
|
|
}
|
|
|
|
.primary {
|
|
width: 100%;
|
|
position: relative;
|
|
float: left;
|
|
color: dark-light-diff($secondary, $primary, 75%, 0%);
|
|
|
|
h1 {font-weight: bold;}
|
|
|
|
.primary-textual {
|
|
padding: 3px;
|
|
a[href] {
|
|
color: dark-light-diff($secondary, $primary, 75%, -10%);
|
|
|
|
}
|
|
}
|
|
|
|
.bio {
|
|
color: dark-light-diff($secondary, $primary, 75%, 0%);
|
|
max-height: 300px;
|
|
overflow: auto;
|
|
max-width: 750px;
|
|
|
|
a[href] {
|
|
color: dark-light-diff($secondary, $primary, 75%, 0%);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.controls {
|
|
padding: 0 0 12px 0;
|
|
float: right;
|
|
width: 180px;
|
|
ul {list-style-type: none;}
|
|
a {
|
|
padding: 5px 10px;
|
|
width: 140px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.right {
|
|
float: right;
|
|
margin-left: 5px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.about.collapsed-info {
|
|
.controls {
|
|
margin-top: 0;
|
|
width: auto;
|
|
ul {
|
|
li {display: inline;}
|
|
a {
|
|
padding: 5px 10px;
|
|
margin-bottom: 10px;
|
|
width: auto;
|
|
}
|
|
}
|
|
}
|
|
|
|
.staff-counters {
|
|
display: none;
|
|
}
|
|
|
|
.secondary { display: none; }
|
|
|
|
.profile-image {
|
|
height: 0;
|
|
}
|
|
|
|
.details {
|
|
padding: 12px 15px 2px 15px;
|
|
margin-top: 0;
|
|
background: rgba($primary, 1);
|
|
.bio { display: none; }
|
|
|
|
.primary {
|
|
text-align: left;
|
|
margin-top: 0;
|
|
width: 100%;
|
|
|
|
.avatar {
|
|
float: left;
|
|
margin-right: 10px;
|
|
width: 45px;
|
|
height: 45px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 20px;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 15px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
h3 {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
.user-stream {
|
|
float: right;
|
|
width: 75%;
|
|
.excerpt {
|
|
margin: 5px 0;
|
|
font-size: 13px;
|
|
word-wrap: break-word;
|
|
color: $primary;
|
|
}
|
|
.item.moderator-action {
|
|
background-color: dark-light-diff($highlight, $secondary, 50%, -10%);
|
|
}
|
|
.item.deleted {
|
|
opacity: 0.8;
|
|
background-color: dark-light-diff(rgba($danger,.7), $secondary, 50%, -10%);
|
|
}
|
|
.item.hidden {
|
|
display: block;
|
|
opacity: 0.4;
|
|
}
|
|
.item {
|
|
padding: 20px 8px 15px 8px;
|
|
background-color: $secondary;
|
|
border-bottom: 1px solid scale-color-diff();
|
|
}
|
|
.type {
|
|
color: $primary;
|
|
}
|
|
span.name {
|
|
color: $primary;
|
|
}
|
|
.time, .delete-info {
|
|
display: block;
|
|
float: right;
|
|
color: $primary;
|
|
margin-right: 8px;
|
|
font-size: 11px;
|
|
}
|
|
.delete-info i {
|
|
font-size: 14px;
|
|
}
|
|
.avatar-link {
|
|
float: left;
|
|
margin-right: 4px;
|
|
}
|
|
.title {
|
|
display: block;
|
|
font-size: 14px;
|
|
max-width: 80%;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.name {
|
|
display: block;
|
|
font-size: 14px;
|
|
max-width: 400px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.edit-reason {
|
|
background-color: scale-color($highlight, $lightness: 25%);
|
|
padding: 3px 5px 5px 5px;
|
|
}
|
|
.remove-bookmark {
|
|
float: right;
|
|
margin-top: -4px;
|
|
}
|
|
.notification {
|
|
&.unread {
|
|
background-color: dark-light-diff($tertiary, $secondary, 90%, -60%);
|
|
}
|
|
|
|
li { display: inline-block; }
|
|
p {
|
|
display: inline-block;
|
|
margin-left: 10px;
|
|
span {
|
|
color: $primary;
|
|
}
|
|
}
|
|
.time {
|
|
display: inline-block;
|
|
margin-left: 10px;
|
|
float: none;
|
|
}
|
|
// common/base/header.scss
|
|
.fa, .icon {
|
|
color: scale-color($primary, $lightness: 50%);
|
|
font-size: 24px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.staff-counters {
|
|
text-align: left;
|
|
background: $primary;
|
|
padding: 7px 0;
|
|
display: inline;
|
|
> div {
|
|
margin: 0 10px 0 0;
|
|
display: inline-block;
|
|
padding: 5px 0;
|
|
&:first-of-type {
|
|
padding-left: 10px;
|
|
}
|
|
span {
|
|
padding: 1px 5px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
}
|
|
a {
|
|
color: $secondary;
|
|
}
|
|
.active {
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
|
|
.pill {
|
|
border-radius: 15px;
|
|
display: inline-block;
|
|
height: 30px;
|
|
width: 30px;
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
line-height: 30px;
|
|
}
|
|
.helpful-flags {
|
|
background-color: green;
|
|
}
|
|
.flagged-posts {
|
|
background-color: #E49735;
|
|
}
|
|
.warnings-received {
|
|
background-color: #EC441B;
|
|
}
|
|
.deleted-posts {
|
|
background-color: #EC441B;
|
|
}
|
|
.suspensions {
|
|
background-color: #c22020;
|
|
}
|
|
|
|
.user-field.text {
|
|
padding-top: 18px;
|
|
}
|
|
|
|
.user-field {
|
|
label {
|
|
width: 140px;
|
|
float: left;
|
|
text-align: right;
|
|
font-weight: bold;
|
|
}
|
|
input[type=text] {
|
|
width: 530px;
|
|
}
|
|
.controls {
|
|
label {
|
|
width: auto;
|
|
text-align: left;
|
|
font-weight: normal;
|
|
float: auto;
|
|
}
|
|
p {
|
|
color: scale-color($primary, $lightness: 50%);
|
|
margin-top: 5px;
|
|
margin-bottom: 10px;
|
|
font-size: 80%;
|
|
line-height: 1.4em;
|
|
}
|
|
}
|
|
clear: both;
|
|
margin-bottom: 10px;
|
|
}
|
|
}
|
|
|
|
.paginated-topics-list {
|
|
float: right;
|
|
width: 75%;
|
|
margin-top: 20px;
|
|
|
|
.topic-list > tbody > tr:nth-child(odd) {
|
|
background-color: darken($secondary, 3%);
|
|
}
|
|
|
|
.topic-list > tbody > tr:nth-child(even) {
|
|
background-color: $secondary;
|
|
}
|
|
|
|
.user-content {
|
|
width: 100%;
|
|
margin-top: 0;
|
|
}
|
|
}
|