user-card.less 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. //
  2. // User Card
  3. // --------------------------------------------------
  4. // Card container
  5. .user-card {
  6. background: @body-bg;
  7. border: 1px solid @gray-lighter;
  8. border-radius: @border-radius-large;
  9. margin-bottom: @line-height-computed;
  10. overflow: hidden;
  11. }
  12. // Inset image container
  13. .user-card-bg-image .bg-image {
  14. display: none
  15. }
  16. // Details container
  17. .user-card .user-details {
  18. padding: @padding-base-vertical @padding-base-horizontal;
  19. overflow: auto;
  20. }
  21. // Avatar
  22. .user-card .user-details .user-avatar {
  23. float: left;
  24. img {
  25. width: 60px;
  26. height: 60px;
  27. }
  28. // Scale avatar down on mobile
  29. @media screen and (max-width: @screen-sm-max) {
  30. img {
  31. width: 46px;
  32. height: 46px;
  33. }
  34. }
  35. }
  36. // Username
  37. .user-card .user-name {
  38. margin-left: 76px;
  39. .item-title {
  40. font-size: @font-size-large;
  41. }
  42. // Move username to the left
  43. @media screen and (max-width: @screen-sm-max) {
  44. margin-left: 58px;
  45. margin-top: @padding-small-vertical;
  46. margin-bottom: @padding-base-vertical;
  47. }
  48. }
  49. // Subscript containing details
  50. .user-card .user-subscript {
  51. margin-left: 76px;
  52. margin-bottom: 0px;
  53. overflow: auto;
  54. color: @text-muted;
  55. font-size: @font-size-base * 0.66;
  56. &>* {
  57. display: block;
  58. float: left;
  59. height: auto;
  60. padding: 0px;
  61. margin: 0px;
  62. margin-right: 8px;
  63. }
  64. // Move subscript to the left
  65. @media screen and (max-width: @screen-sm-max) {
  66. margin-left: 58px;
  67. }
  68. // Default UI preview style
  69. .ui-preview-text {
  70. position: relative;
  71. top: auto;
  72. height: @font-size-base * 0.66;
  73. font-size: @font-size-base * 0.66;
  74. line-height: @font-size-base * 0.66;
  75. }
  76. }
  77. // Online state
  78. .user-card .user-status .status-icon {
  79. margin-right: 2px;
  80. position: relative;
  81. bottom: 1px;
  82. width: 11px;
  83. height: 11px;
  84. font-size: 11px;
  85. line-height: 11px;
  86. // UI preview icon
  87. &.ui-preview-text {
  88. margin-right: 3px;
  89. position: relative;
  90. bottom: 0px;
  91. width: 12px;
  92. height: 12px;
  93. font-size: 12px;
  94. line-height: 12px;
  95. }
  96. }
  97. // Stats list
  98. .user-card .user-card-stats {
  99. border-top: 1px solid @gray-lighter;
  100. display: table;
  101. table-layout: fixed;
  102. width: 100%;
  103. ul {
  104. display: table-row;
  105. li {
  106. display: table-cell;
  107. overflow: auto;
  108. padding: @padding-base-vertical @padding-base-horizontal;
  109. font-size: @font-size-small;
  110. font-weight: bold;
  111. text-align: center;
  112. }
  113. }
  114. // Default UI preview style
  115. .ui-preview-text {
  116. position: static;
  117. height: @font-size-small;
  118. font-size: @font-size-small;
  119. line-height: @font-size-small;
  120. }
  121. }