123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254 |
- //
- // Posts List Post
- // --------------------------------------------------
- // Post side
- .post-side {
- font-size: @font-size-small;
- .media {
- margin: 0px;
- }
- .poster-avatar {
- height: 36px;
- width: 36px;
- @media screen and (min-width: @screen-md-min) {
- margin-top: 4px;
- height: 82px;
- width: 82px;
- }
- }
- .media-heading {
- display: block;
- }
- .media-heading {
- margin: 0px;
- margin-top: -1px;
- font-size: @font-size-base;
- .user-status {
- margin-left: 2px;
- }
- }
- .pull-right {
- margin-left: @padding-large-horizontal;
- }
- // Lay user details vertically
- @media screen and (min-width: @screen-md-min) {
- .media-heading {
- margin-top: 3px;
- font-size: @font-size-large;
- .user-status {
- display: none;
- }
- }
- .user-title {
- margin-top: 4px;
- margin-bottom: 5px;
- }
- .user-postcount {
- display: block;
- }
- .user-status {
- display: block;
- }
- }
- }
- // Heading
- .post-heading {
- height: 36px;
- @media screen and (max-width: @screen-sm-max) {
- margin-top: @line-height-computed / 2;
- }
- .pull-right {
- margin-left: @padding-large-horizontal;
- }
- &>.btn-link {
- padding-left: 0px;
- padding-right: 0px;
- }
- .label {
- margin-top: 6px;
- font-size: @font-size-base;
- font-weight: normal;
- }
- .label-unread {
- background-color: @brand-success;
- color: #fff;
- }
- }
- // Move controls up
- @media screen and (min-width: @screen-md-min) {
- .post-side .pull-right {
- display: none;
- }
- }
- @media screen and (max-width: @screen-sm-max) {
- .post-heading .pull-right {
- display: none;
- }
- }
- // Body
- .post-body {
- padding-top: @line-height-computed;
- padding-bottom: @line-height-computed * 1.5;
- }
- // Status
- .post-status-message {
- overflow: auto;
- .material-icon {
- float: left;
- font-size: 28px;
- line-height: 28px;
- }
- p {
- margin: 0px;
- margin-top: (28px - @line-height-computed) / 2;
- margin-left: 36px;
- }
- }
- .post-status-best-answer {
- background-color: @brand-success;
- color: #fff;
- }
- .post-status-hidden {
- background-color: @brand-danger;
- color: #fff;
- }
- .post-status-unapproved {
- background-color: @brand-primary;
- color: #fff;
- }
- .post-status-protected {
- background-color: @gray;
- color: #fff;
- }
- // Footer
- .post-footer {
- .pull-left {
- margin-right: @padding-large-horizontal;
- }
- .pull-right {
- margin-left: @padding-large-horizontal;
- }
- p {
- padding-top: 7px;
- padding-bottom: 6px;
- margin-bottom: 0px;
- }
- }
- // Attachments
- .post-attachments {
- @post-preview-width: 40px;
- border-top: 1px solid @gray-lighter;
- padding: @padding-base-vertical @padding-large-horizontal;
- abbr {
- white-space: nowrap;
- }
- .attachment-name {
- word-wrap: break-word;
- }
- .row>div {
- margin: @padding-large-vertical 0px;
- }
- .post-attachment-preview {
- float: left;
- height: @post-preview-width;
- width: @post-preview-width;
- text-align: center;
- }
- .post-attachment {
- margin-left: @post-preview-width + 12px;
- }
- .post-thumbnail {
- display: block;
- background-size: cover;
- background-position: center;
- border-radius: @border-radius-small;
- width: @post-preview-width;
- height: @post-preview-width;
- }
- .material-icon {
- width: 28px;
- height: 28px;
- position: relative;
- top: 5px;
- font-size: 28px;
- line-height: 28px;
- &:link, &:active, &:visited, &:hover, &:focus {
- color: @gray-darker;
- text-decoration: none;
- }
- }
- .post-attachment-description {
- margin: 0px;
- padding: 0px;
- color: @text-muted;
- font-size: @font-size-small;
- }
- }
|