user-card.less 1.6 KB

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