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

_spotlight.scss 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. /* Spotlight */
  7. .spotlight {
  8. @include vendor('display', 'flex');
  9. @include vendor('align-items', 'center');
  10. margin: 0 0 _size(element-margin) 0;
  11. .content {
  12. @include vendor('flex', '1');
  13. > :last-child {
  14. margin-bottom: 0;
  15. }
  16. header {
  17. &.major {
  18. margin: 0 0 _size(element-margin) 0;
  19. }
  20. }
  21. }
  22. .image {
  23. display: inline-block;
  24. margin-left: 4em;
  25. padding: 0.65em;
  26. border-radius: 100%;
  27. border: solid 1px;
  28. img {
  29. display: block;
  30. border-radius: 100%;
  31. width: 16em;
  32. }
  33. }
  34. @include breakpoint('<=medium') {
  35. @include vendor('flex-direction', 'column-reverse');
  36. text-align: center;
  37. .content {
  38. @include vendor('flex', '0 1 auto');
  39. width: 100%;
  40. header {
  41. &.major {
  42. h2 {
  43. &:after {
  44. margin-left: auto;
  45. margin-right: auto;
  46. }
  47. }
  48. }
  49. }
  50. .actions {
  51. @include vendor('justify-content', 'center');
  52. width: calc(100% + #{_size(element-margin) * 0.5});
  53. }
  54. }
  55. .image {
  56. @include vendor('flex', '0 1 auto');
  57. margin-left: 0;
  58. margin-bottom: _size(element-margin);
  59. }
  60. }
  61. @include breakpoint('<=small') {
  62. .image {
  63. padding: 0.35em;
  64. img {
  65. width: 12em;
  66. }
  67. }
  68. }
  69. }
  70. @mixin color-spotlight($p: null) {
  71. .spotlight {
  72. .image {
  73. border-color: _palette($p, border);
  74. }
  75. }
  76. }
  77. @include color-spotlight;