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

_icon.scss 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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. /* Icon */
  7. .icon {
  8. @include icon;
  9. @include vendor('transition', (
  10. 'background-color #{_duration(transition)} ease-in-out',
  11. 'color #{_duration(transition)} ease-in-out'
  12. ));
  13. border-bottom: none;
  14. position: relative;
  15. > .label {
  16. display: none;
  17. }
  18. &.major {
  19. border: solid 1px;
  20. display: inline-block;
  21. border-radius: 100%;
  22. padding: 0.65em;
  23. margin: 0 0 _size(element-margin) 0;
  24. cursor: default;
  25. &:before {
  26. display: inline-block;
  27. font-size: 6.25rem;
  28. width: 2.25em;
  29. height: 2.25em;
  30. line-height: 2.2em;
  31. border-radius: 100%;
  32. border: solid 1px;
  33. text-align: center;
  34. }
  35. }
  36. &.alt {
  37. display: inline-block;
  38. border: solid 1px;
  39. border-radius: 100%;
  40. &:before {
  41. display: block;
  42. font-size: 1.25em;
  43. width: 2em;
  44. height: 2em;
  45. text-align: center;
  46. line-height: 2em;
  47. }
  48. }
  49. &.style1 {
  50. color: _palette(accent1);
  51. }
  52. &.style2 {
  53. color: _palette(accent2);
  54. }
  55. &.style3 {
  56. color: _palette(accent3);
  57. }
  58. &.style4 {
  59. color: _palette(accent4);
  60. }
  61. &.style5 {
  62. color: _palette(accent5);
  63. }
  64. @include breakpoint('<=xlarge') {
  65. &.major {
  66. &:before {
  67. font-size: 5.5rem;
  68. }
  69. }
  70. }
  71. @include breakpoint('<=large') {
  72. &.major {
  73. &:before {
  74. font-size: 4.75rem;
  75. }
  76. }
  77. }
  78. @include breakpoint('<=small') {
  79. &.major {
  80. margin: 0 0 (_size(element-margin) * 0.75) 0;
  81. padding: 0.35em;
  82. &:before {
  83. font-size: 3.5rem;
  84. }
  85. }
  86. }
  87. }
  88. @mixin color-icon($p: null) {
  89. .icon {
  90. &.major {
  91. border-color: _palette($p, border);
  92. &:before {
  93. border-color: _palette($p, border);
  94. }
  95. }
  96. &.alt {
  97. border-color: _palette($p, border);
  98. color: _palette($p, fg-bold);
  99. &:hover {
  100. background-color: _palette($p, border-bg);
  101. }
  102. &:active {
  103. background-color: _palette($p, border2-bg);
  104. }
  105. }
  106. }
  107. }
  108. @include color-icon;