123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221 |
- //
- // Categories Lists
- // --------------------------------------------------
- // Subcategories list
- // --------------------------------------------------
- .list-inline.subcategories-list {
- overflow: auto;
- margin-top: @line-height-computed / -2;
- li {
- display: block;
- float: left;
- a, a:link, a:visited, a:active, a:hover, a:focus {
- background-color: @gray-lighter;
- border: 1px solid darken(@gray-lighter, 5%);
- border-radius: @border-radius-base;
- display: inline-block;
- margin-top: @line-height-computed / 2;
- padding: @padding-base-vertical @padding-base-horizontal;
- color: @gray;
- }
- &:focus, a:hover, a:active {
- background-color: darken(@gray-lighter, 5%);
- color: @text-color;
- text-decoration: none;
- }
- }
- }
- // Category Block
- // --------------------------------------------------
- // Alone heading
- .panel-category {
- .panel-heading.heading-alone {
- border-radius: @border-radius-base;
- border-bottom: none;
- }
- }
- // Category titles
- .panel-category {
- .panel-title, h4 {
- overflow: auto;
- margin: 0px;
- padding: 0px;
- font-size: @font-size-large;
- a {
- display: block;
- float: left;
- margin-top: 1px;
- }
- .read-status {
- float: left;
- cursor: help;
- .material-icon {
- margin: 0px;
- margin-right: 4px;
- width: 26px;
- position: relative;
- bottom: 1px;
- color: @category-read-color;
- font-size: 24px;
- line-height: 24px;
- text-align: center;
- }
- &.item-new .material-icon {
- color: @category-new-color;
- }
- }
- }
- }
- // Even category description
- .panel-category .category-description,
- .panel-category .subcategory-description {
- p:last-child {
- margin-bottom: 0px;
- }
- }
- .panel-category .subcategory-description {
- margin-top: @line-height-computed / 2;
- font-size: @font-size-small;
- }
- // Subcategories upper margin
- .panel-category .category-subcategories {
- .subcategories-list {
- margin-top: 0px;
- a, a:link, a:visited, a:active, a:hover, a:focus {
- margin-top: @line-height-computed / 2;
- padding: @padding-small-vertical @padding-small-horizontal;
- font-size: @font-size-small;
- }
- }
- }
- // Last activity
- .category-last-post {
- margin-top: 6px;
- margin-bottom: 0px;
- }
- // Category message
- .category-thread-message {
- overflow: auto;
- margin-top: 6px;
- margin-bottom: 0px;
- .material-icon {
- display: block;
- float: left;
- margin-right: 4px;
- position: relative;
- top: 1px;
- font-size: 18px;
- line-height: 18px;
- }
- }
- // Compact displays
- @media screen and (max-width: @screen-sm-max) {
- .panel-category {
- // Add little extra top margin over category names
- .panel-title, h4 {
- margin-top: 3px;
- }
- // Put top margin over stats, make it small
- .category-stats {
- display: none;
- }
- // Don't break thread titles into many lines
- .category-last-activity {
- margin-bottom: 0px;
- .thread-title {
- float: none;
- clear: both;
- overflow: hidden;
- margin-top: @line-height-computed / 2;
- margin-bottom: @line-height-computed / 5;
- padding-right: 0px;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- .poster-name, .thread-date {
- font-size: @font-size-small;
- }
- .thread-date {
- position: relative;
- top: 1px;
- }
- }
- .thread-message {
- padding-top: @line-height-computed / 5;
- font-size: small;
- .material-icon {
- position: relative;
- top: -1px;
- }
- }
- }
- }
- // Full displays
- @media screen and (min-width: @screen-md-min) {
- .panel-category {
- // Pull category stats to the right
- .category-stats {
- float: right;
- margin: 0px;
- margin-top: @line-height-computed * -1 - 3px;
- overflow: auto;
- li {
- display: block;
- float: left;
- }
- }
- .category-last-activity {
- margin-top: @line-height-computed / 5;
- margin-bottom: 0px;
- }
- }
- }
|