user-card.less 1.6 KB

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