user-card.less 2.2 KB

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