user-card.less 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. color: @text-muted;
  35. font-size: @font-size-base * 0.66;
  36. &>* {
  37. margin-right: 8px;
  38. .status-icon {
  39. width: 14px;
  40. height: 14px;
  41. margin-right: 2px;
  42. position: relative;
  43. bottom: 2px;
  44. font-size: 14px;
  45. line-height: 14px;
  46. }
  47. .status-icon.ui-preview {
  48. height: @font-size-base * 0.66;
  49. width: @font-size-base * 0.66;
  50. position: relative;
  51. bottom: -3px;
  52. }
  53. .status-label.ui-preview {
  54. height: @font-size-base * 0.66;
  55. }
  56. }
  57. }
  58. }
  59. .user-card-stats {
  60. border-top: 1px solid @gray-lighter;
  61. display: table;
  62. table-layout: fixed;
  63. width: 100%;
  64. ul {
  65. display: table-row;
  66. li {
  67. display: table-cell;
  68. padding: @padding-base-vertical @padding-base-horizontal;
  69. text-align: center;
  70. strong {
  71. font-size: @font-size-small;
  72. }
  73. small {
  74. margin-left: 3px;
  75. color: @text-muted;
  76. font-size: @font-size-small;
  77. }
  78. }
  79. }
  80. }
  81. }
  82. .user-card.ui-preview {
  83. .user-name .ui-preview-text {
  84. height: @font-size-large;
  85. }
  86. .user-subscript .ui-preview-text {
  87. height: @font-size-base * 0.66;
  88. position: relative;
  89. top: 0px;
  90. }
  91. .user-card-stats .ui-preview-text {
  92. height: @font-size-small;
  93. width: 14px;
  94. position: relative;
  95. top: 0px;
  96. font-size: @font-size-small;
  97. line-height: @font-size-small;
  98. }
  99. }