123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412 |
- //
- // Threads Lists
- // --------------------------------------------------
- .threads-list {
- margin-bottom: @line-height-computed;
- }
- // Thread layout
- // --------------------------------------------------
- // Remove side padding from thread row
- .threads-list .thread-new,
- .threads-list .thread-read,
- .threads-list .thread-preview {
- padding-left: 0px;
- padding-right: 0px;
- }
- // Icon column
- .threads-list .thread-icon {
- float: left;
- width: @thread-col-icon;
- @media screen and (max-width: @screen-sm-max) {
- width: @thread-col-icon-mb;
- }
- }
- // Options column
- .thread-ops-one .thread-options {
- float: right;
- width: @thread-col-option;
- @media screen and (max-width: @screen-sm-max) {
- width: @thread-col-option-mb;
- }
- }
- .thread-ops-two .thread-options {
- float: right;
- width: @thread-col-options;
- @media screen and (max-width: @screen-sm-max) {
- width: @thread-col-options-mb;
- }
- }
- // Thready body left space
- .thread-main {
- margin-left: @thread-col-icon;
- @media screen and (max-width: @screen-sm-max) {
- margin-left: @thread-col-icon-mb;
- padding-top: 2px;
- }
- }
- // Thready body right space
- .thread-main {
- margin-right: 10px;
- }
- .thread-ops-one .thread-main {
- margin-right: @thread-col-option;
- @media screen and (max-width: @screen-sm-max) {
- margin-right: @thread-col-option-mb;
- }
- }
- .thread-ops-two .thread-main {
- margin-right: @thread-col-options;
- @media screen and (max-width: @screen-sm-max) {
- margin-right: @thread-col-options-mb;
- }
- }
- // Thread icon
- // --------------------------------------------------
- .threads-list .thread-icon {
- padding-top: 2px;
- text-align: center;
- }
- // Read icon
- .threads-list .read-status {
- .material-icon {
- width: 24px;
- height: 24px;
- color: @thread-read-icon-color;
- font-size: 24px;
- line-height: 24px;
- }
- }
- .threads-list .thread-new .read-status {
- .material-icon {
- color: @thread-new-icon-color;
- }
- }
- .threads-list .thread-preview .read-status {
- .material-icon {
- color: @ui-preview;
- }
- }
- // Loader
- .threads-list .thread-icon .loader {
- height: 24px;
- }
- .threads-list .thread-icon .loader-spinning-wheel {
- width: 24px;
- height: 24px;
- border-color: lighten(@loader-color, 25%) transparent;
- }
- // Thread flags
- .threads-list .thread-flags {
- display: none;
- margin-left: auto;
- margin-right: auto;
- position: relative;
- bottom: 4px;
- color: @text-muted;
- pointer-events: none;
- @media screen and (max-width: @screen-sm-max) {
- display: block;
- margin: 0px;
- padding: 0px;
- }
- li {
- margin: 0px 2px;
- }
- .material-icon {
- font-size: 10px;
- line-height: 10px;
- }
- }
- // Thread top row
- // --------------------------------------------------
- // Thread title
- .threads-list .thread-title {
- &, &:link, &:active, &:visited, &:hover, &:focus {
- color: @thread-read-color;
- font-size: @font-size-large;
- font-weight: normal;
- word-wrap: break-word;
- .ui-preview-text {
- height: @font-size-large;
- }
- @media screen and (max-width: @screen-sm-max) {
- font-size: @font-size-base;
- font-weight: bold;
- .ui-preview-text {
- height: @font-size-base;
- }
- }
- }
- }
- .threads-list .thread-new .thread-title {
- &, &:link, &:active, &:visited, &:hover, &:focus {
- color: @thread-new-color;
- }
- }
- // Bottom row
- // --------------------------------------------------
- // Full details used on desktop
- .threads-list .thread-details-full {
- display: block;
- float: none;
- margin: 0px;
- margin-top: @line-height-computed * .25;
- padding: 0px;
- overflow: auto;
- font-size: @font-size-small;
- @media screen and (max-width: @screen-sm-max) {
- display: none;
- }
- &>li {
- display: block;
- float: left;
- margin: 0px;
- margin-right: 6px;
- padding: 0px;
- overflow: auto;
- .material-icon {
- position: relative;
- top: 1px;
- float: left;
- margin-right: 2px;
- font-size: 14px;
- line-height: 14px;
- }
- .icon-legend {
- float: left;
- }
- .ui-preview-text {
- height: @font-size-small;
- }
- &.thread-path a {
- float: left;
- }
- }
- }
- // Compact details used on mobile
- .threads-list .thread-details-compact {
- display: none;
- float: none;
- margin: 0px;
- margin-top: @line-height-computed * .25;
- padding: 0px;
- overflow: auto;
- color: @text-muted;
- font-size: @font-size-base * .66;
- @media screen and (max-width: @screen-sm-max) {
- display: block;
- }
- &>li {
- display: block;
- float: left;
- margin: 0px;
- margin-right: 6px;
- padding: 0px;
- .material-icon {
- position: relative;
- top: -1px;
- margin-right: 2px;
- font-size: (@font-size-base * .66) + 1px;
- line-height: (@font-size-base * .66) + 1px;
- }
- .ui-preview-text {
- height: @font-size-base * .66;
- }
- }
- }
- // Thread path
- .threads-list .thread-path {
- .material-icon {
- margin: 0px 2px;
- }
- }
- // Thread options
- // --------------------------------------------------
- .threads-list .thread-options {
- @media screen and (max-width: @screen-sm-max) {
- overflow: visible;
- position: relative;
- width: 100px;
- }
- &>ul {
- margin: 0px;
- padding: 0px;
- @media screen and (max-width: @screen-sm-max) {
- position: absolute;
- top: -3px;
- right: 2px;
- }
- &>li {
- float: right;
- @media screen and (max-width: @screen-sm-max) {
- overflow: hidden;
- }
- }
- }
- .btn-default {
- padding: 4px;
- color: @gray-light;
- @media screen and (max-width: @screen-sm-max) {
- background: transparent;
- opacity: .33;
- }
- &:hover, &:active {
- color: @gray;
- @media screen and (max-width: @screen-sm-max) {
- background: @btn-default-bg;
- opacity: 1;
- }
- }
- .material-icon {
- margin: 0px;
- position: relative;
- top: 0px;
- width: 20px;
- height: 20px;
- font-size: 20px;
- line-height: 20px;
- }
- .icon-legend {
- display: none;
- }
- }
- }
- // Threads diff message
- // --------------------------------------------------
- .threads-diff-message {
- padding: 0px;
- }
- .threads-diff-message .btn {
- border: none;
- border-bottom-left-radius: 0px;
- border-bottom-right-radius: 0px;
- padding: @padding-large-vertical @padding-large-horizontal;
- width: 100%;
- overflow: none;
- text-align: left;
- .material-icon {
- margin-right: 4px;
- width: 24px;
- height: 24px;
- font-size: 24px;
- height: 24px;
- }
- @media screen and (max-width: @screen-sm-max) {
- text-align: center;
- white-space: normal;
- word-wrap: break-word;
- .material-icon {
- display: none;
- }
- }
- }
- // Pulse busy threads
- // --------------------------------------------------
- .threads-list .thread-busy {
- .thread-flags, .thread-main, .thread-options {
- .animation(thread-busy-animation 600ms linear infinite);
- }
- }
- @keyframes thread-busy-animation {
- 0% {
- .opacity(0.2);
- }
- 50% {
- .opacity(0.5);
- }
- 100% {
- .opacity(0.2);
- }
- }
|