user-card.less 2.5 KB

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