userslists.less 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. //
  2. // Users Lists
  3. // --------------------------------------------------
  4. // Fancy Web 9000.0 users cards list
  5. //
  6. //==
  7. .users-cards {
  8. .row {
  9. margin-bottom: @line-height-computed;
  10. .user-card {
  11. background: @user-card-bg;
  12. border-radius: @border-radius-large;
  13. .box-shadow(@user-card-shadow 0px 0px 0px 2px);
  14. display: block;
  15. overflow: hidden;
  16. padding: 3px;
  17. position: relative;
  18. color: @text-color;
  19. img {
  20. border-radius: @border-radius-base;
  21. width: 100%;
  22. }
  23. .card-footer {
  24. background: fadeOut(@user-card-bg, 15%);
  25. position: absolute;
  26. bottom: 0px;
  27. padding: @padding-base-vertical @padding-base-horizontal;
  28. width: 100%;
  29. h4, small {
  30. word-wrap: break-word;
  31. }
  32. small {
  33. display: block;
  34. margin-top: @line-height-computed / -3;
  35. margin-bottom: @line-height-computed / 3;
  36. color: @text-color;
  37. font-size: @font-size-base;
  38. }
  39. }
  40. }
  41. .col-md-2, .col-md-1 {
  42. .user-card {
  43. .card-footer {
  44. background: fadeOut(@user-card-bg, 7%);
  45. padding: @padding-xs-vertical @padding-small-horizontal;
  46. h4 {
  47. font-size: @font-size-base;
  48. }
  49. small {
  50. font-size: @font-size-small;
  51. }
  52. }
  53. }
  54. }
  55. }
  56. a.user-card {
  57. &:hover {
  58. .box-shadow(@user-card-hover-shadow 0px 0px 0px 2px);
  59. }
  60. &:active {
  61. .box-shadow(@user-card-active-shadow 0px 0px 0px 2px);
  62. }
  63. }
  64. }
  65. // Users ranking
  66. //
  67. //==
  68. .users-ranking {
  69. &>tbody {
  70. &>tr {
  71. &>td {
  72. vertical-align: middle;
  73. .avatar {
  74. border-radius: @border-radius-base;
  75. }
  76. .item-title {
  77. font-size: @font-size-large;
  78. }
  79. }
  80. &.highlight {
  81. color: @brand-accent;
  82. .item-title {
  83. &:link, &:visited {
  84. color: @brand-accent;
  85. }
  86. }
  87. }
  88. }
  89. }
  90. }
  91. // Compact users list for use in modals and stuff
  92. //
  93. //==
  94. .users-list-compact {
  95. &>li {
  96. border-bottom: 1px solid @hr-border;
  97. padding: @line-height-computed / 2 0px;
  98. &:last-child {
  99. border-bottom: none;
  100. }
  101. img {
  102. border-radius: @border-radius-small;
  103. height: 24px;
  104. }
  105. .item-title {
  106. font-weight: bold;
  107. }
  108. .btn {
  109. margin-left: @line-height-computed / 2;
  110. margin-top: -3px;
  111. }
  112. }
  113. }