user-card.less 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. // we defautly hide status icons from cards
  11. .status-icon, .status-icon.ui-preview {
  12. display: none;
  13. }
  14. .user-card-bg-image{
  15. background: @body-bg;
  16. & > img {
  17. display: none;
  18. }
  19. }
  20. .user-details {
  21. padding: @padding-base-vertical @padding-base-horizontal;
  22. overflow: auto;
  23. .user-avatar {
  24. float: left;
  25. img {
  26. width: 60px;
  27. height: 60px;
  28. }
  29. }
  30. .user-name {
  31. margin-left: 76px;
  32. .item-title {
  33. font-size: @font-size-large;
  34. }
  35. }
  36. .user-subscript {
  37. margin-left: 76px;
  38. color: @text-muted;
  39. font-size: @font-size-base * 0.66;
  40. &>span {
  41. margin-right: 8px;
  42. .status-label.ui-preview {
  43. height: @font-size-base * 0.66;
  44. }
  45. }
  46. }
  47. }
  48. .user-card-stats {
  49. border-top: 1px solid @gray-lighter;
  50. display: table;
  51. table-layout: fixed;
  52. width: 100%;
  53. ul {
  54. display: table-row;
  55. li {
  56. display: table-cell;
  57. padding: @padding-base-vertical @padding-base-horizontal;
  58. text-align: center;
  59. strong {
  60. font-size: @font-size-small;
  61. }
  62. small {
  63. margin-left: 3px;
  64. color: @text-muted;
  65. font-size: @font-size-small;
  66. }
  67. }
  68. }
  69. }
  70. }
  71. .user-card.ui-preview {
  72. .user-name .ui-preview-text {
  73. height: @font-size-large;
  74. }
  75. .user-subscript .ui-preview-text {
  76. height: @font-size-base * 0.66;
  77. position: relative;
  78. top: 0px;
  79. }
  80. .user-card-stats .ui-preview-text {
  81. height: @font-size-small;
  82. width: 14px;
  83. position: relative;
  84. top: 0px;
  85. font-size: @font-size-small;
  86. line-height: @font-size-small;
  87. }
  88. }