ranks-flavors.less 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. //
  2. // Default flavors for user ranks
  3. // --------------------------------------------------
  4. .post-rank-flavor(@border, @title) {
  5. .panel-post {
  6. border: 2px solid @border;
  7. border-radius: @panel-border-radius;
  8. }
  9. .user-title {
  10. color: @title;
  11. a, a:link, a:visited,
  12. a:focus, a:hover, a:active {
  13. color: @title;
  14. }
  15. }
  16. }
  17. .card-rank-flavor(@border, @title, @color) {
  18. .panel-body {
  19. background: @body-bg;
  20. border: 2px solid @border;
  21. border-radius: @panel-border-radius;
  22. padding: @panel-body-padding - 2px;
  23. }
  24. .user-card-title {
  25. color: @title;
  26. a.user-title {
  27. &, &:link, &:visited,
  28. &:focus, &:hover, &:active {
  29. color: @title;
  30. }
  31. }
  32. }
  33. .user-card-stats li {
  34. color: @color;
  35. }
  36. }
  37. .list-group-rank-flavor(@border, @title) {
  38. border-left: 4px solid @border;
  39. padding-left: 11px;
  40. span.rank-name {
  41. color: @title;
  42. }
  43. a.rank-name {
  44. &, &:link, &:visited,
  45. &:focus, &:hover, &:active {
  46. color: @title;
  47. }
  48. }
  49. }
  50. .user-profile-rank-flavor(@color) {
  51. .user-rank {
  52. color: @color;
  53. a, a:link, a:visited,
  54. a:focus, a:hover, a:active {
  55. color: @color;
  56. }
  57. }
  58. }
  59. // Posts
  60. .post-primary {
  61. .post-rank-flavor(#7e57c2, #6200ea);
  62. }
  63. .post-success {
  64. .post-rank-flavor(#66bb6a, #388e3c);
  65. }
  66. .post-warning {
  67. .post-rank-flavor(#ff7043, #ff6d00);
  68. }
  69. .post-danger {
  70. .post-rank-flavor(#f44336, #d50000);
  71. }
  72. // Cards
  73. .user-card-primary {
  74. .card-rank-flavor(#7e57c2, #6200ea, #9575cd);
  75. }
  76. .user-card-success {
  77. .card-rank-flavor(#66bb6a, #388e3c, #66bb6a);
  78. }
  79. .user-card-warning {
  80. .card-rank-flavor(#ff7043, #ff6d00, #ff6e40);
  81. }
  82. .user-card-danger {
  83. .card-rank-flavor(#f44336, #d50000, #e57373);
  84. }
  85. // Posters ranking
  86. .list-group {
  87. .list-group-rank-primary {
  88. .list-group-rank-flavor(#7e57c2, #6200ea);
  89. }
  90. .list-group-rank-success {
  91. .list-group-rank-flavor(#9ccc65, #388e3c);
  92. }
  93. .list-group-rank-warning {
  94. .list-group-rank-flavor(#ff7043, #ff6d00);
  95. }
  96. .list-group-rank-danger {
  97. .list-group-rank-flavor(#f44336, #d50000);
  98. }
  99. }
  100. // User profiles
  101. .page-header-rank-primary {
  102. .user-profile-rank-flavor(#6200ea);
  103. }
  104. .page-header-rank-success {
  105. .user-profile-rank-flavor(#388e3c);
  106. }
  107. .page-header-rank-warning {
  108. .user-profile-rank-flavor(#ff6d00);
  109. }
  110. .page-header-rank-danger {
  111. .user-profile-rank-flavor(#d50000);
  112. }