_blog.scss 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /* ------------------------------------------------------------------------------
  2. *
  3. * # Blog layouts
  4. *
  5. * Blog layouts with various blog layouts
  6. *
  7. * ---------------------------------------------------------------------------- */
  8. // Check if component is enabled
  9. @if $enable-blog {
  10. // Horizontal layout
  11. .blog-horizontal {
  12. // Stick thumb to the left and give it fixed width
  13. .card-img-actions {
  14. width: 100%;
  15. // Desktop size
  16. @include media-breakpoint-up(sm) {
  17. width: 45%;
  18. float: left;
  19. max-width: $blog-horizontal-img-max-width;
  20. z-index: 10;
  21. }
  22. }
  23. }
  24. //
  25. // Media sizing
  26. //
  27. // Mini
  28. .blog-horizontal-xs {
  29. .card-img-actions {
  30. @include media-breakpoint-up(sm) {
  31. width: 35%;
  32. max-width: $blog-horizontal-img-max-width-xs;
  33. }
  34. }
  35. }
  36. // Medium
  37. .blog-horizontal-sm {
  38. .card-img-actions {
  39. @include media-breakpoint-up(sm) {
  40. width: 40%;
  41. max-width: $blog-horizontal-img-max-width-sm;
  42. }
  43. }
  44. }
  45. // Large
  46. .blog-horizontal-lg {
  47. .card-img-actions {
  48. @include media-breakpoint-up(sm) {
  49. width: 50%;
  50. max-width: $blog-horizontal-img-max-width-lg;
  51. }
  52. }
  53. }
  54. }