Blog-style website for karathan using the self-made Stellar Theme powered by HTML5Up http://blog.karathan.at

_statistics.scss 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. ///
  2. /// Stellar by HTML5 UP
  3. /// html5up.net | @ajlkn
  4. /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
  5. ///
  6. /* Statistics */
  7. .statistics {
  8. @include vendor('display', 'flex');
  9. width: 100%;
  10. margin: 0 0 (_size(element-margin) * 1.5) 0;
  11. padding: 0;
  12. list-style: none;
  13. cursor: default;
  14. li {
  15. @include vendor('flex', '1');
  16. padding: 1.5em;
  17. color: _palette(fg-bold);
  18. text-align: center;
  19. &.style1 {
  20. background-color: _palette(accent1);
  21. }
  22. &.style2 {
  23. background-color: _palette(accent2);
  24. }
  25. &.style3 {
  26. background-color: _palette(accent3);
  27. }
  28. &.style4 {
  29. background-color: _palette(accent4);
  30. }
  31. &.style5 {
  32. background-color: _palette(accent5);
  33. }
  34. strong, b {
  35. display: block;
  36. font-size: 2em;
  37. line-height: 1.1;
  38. color: inherit !important;
  39. font-weight: _font(weight);
  40. letter-spacing: _font(letter-spacing);
  41. }
  42. &:first-child {
  43. border-top-left-radius: _size(border-radius);
  44. border-bottom-left-radius: _size(border-radius);
  45. }
  46. &:last-child {
  47. border-top-right-radius: _size(border-radius);
  48. border-bottom-right-radius: _size(border-radius);
  49. }
  50. .icon {
  51. display: inline-block;
  52. &:before {
  53. font-size: 2.75rem;
  54. line-height: 1.3;
  55. }
  56. }
  57. }
  58. @include breakpoint('<=medium') {
  59. li {
  60. strong, b {
  61. font-size: 1.5em;
  62. }
  63. }
  64. }
  65. @include breakpoint('<=small') {
  66. display: block;
  67. width: 20em;
  68. max-width: 100%;
  69. margin: 0 auto _size(element-margin) auto;
  70. li {
  71. &:first-child {
  72. border-bottom-left-radius: 0;
  73. border-top-right-radius: _size(border-radius);
  74. }
  75. &:last-child {
  76. border-top-right-radius: 0;
  77. border-bottom-left-radius: _size(border-radius);
  78. }
  79. .icon {
  80. &:before {
  81. font-size: 3.75rem;
  82. }
  83. }
  84. strong, b {
  85. font-size: 2.5em;
  86. }
  87. }
  88. }
  89. }