user-card.less 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. //
  2. // User Card Flavor
  3. // --------------------------------------------------
  4. // Background color
  5. .user-card {
  6. background: @user-card-bg;
  7. }
  8. // Round avatar corners
  9. .user-card-small-avatar, .user-card-avatar {
  10. img {
  11. border-radius: @border-radius-base;
  12. }
  13. }
  14. // Sizing and spacing on large avatar
  15. .user-card-avatar {
  16. margin: @line-height-computed 0px;
  17. img {
  18. width: 150px;
  19. height: 150px;
  20. }
  21. }
  22. // Upsize the user name
  23. .user-card-username {
  24. a, a:link, a:visited, a:hover, a:focus, a:active {
  25. color: @text-color;
  26. font-size: @font-size-large;
  27. font-weight: bold;
  28. }
  29. }
  30. // User title
  31. .user-card-title {
  32. span, a, a:link, a:visited {
  33. color: @gray;
  34. }
  35. a:focus, a:hover, a:active {
  36. color: @text-color;
  37. }
  38. }
  39. // User stats
  40. .user-card-stats {
  41. @media screen and (min-width: @screen-sm-min) {
  42. margin-top: @line-height-computed;
  43. }
  44. ul {
  45. margin: 0px;
  46. }
  47. li {
  48. display: inline-block;
  49. margin-right: @padding-base-horizontal;
  50. color: @gray-light;
  51. font-size: @font-size-small;
  52. @media screen and (min-width: @screen-sm-min) {
  53. margin: 0px @padding-base-horizontal / 2;
  54. }
  55. }
  56. li.user-stat-empty {
  57. display: none;
  58. }
  59. }
  60. // Divide stats in two on larger screen
  61. @media screen and (min-width: @screen-sm-min) {
  62. li.user-stat-divider {
  63. display: block;
  64. margin: 0px;
  65. }
  66. }
  67. @media screen and (max-width: @screen-xs-max) {
  68. li.user-stat-divider {
  69. display: none;
  70. }
  71. }
  72. // Make stats 60px min height on tablets and up
  73. @media screen and (min-width: @screen-sm-min) {
  74. .user-card-stats {
  75. min-height: 60px;
  76. }
  77. }
  78. // Reduce gutter on small grid
  79. @media screen and (max-width: @screen-xs-max) {
  80. .user-card-left {
  81. padding-right: 0px;
  82. }
  83. }