You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
935 B

7 years ago
7 years ago
7 years ago
  1. @mixin avatar-radius() {
  2. border-radius: $ui-avatar-border-size;
  3. background: transparent no-repeat;
  4. background-position: 50%;
  5. background-clip: padding-box;
  6. }
  7. @mixin avatar-size($size:48px) {
  8. width: $size;
  9. height: $size;
  10. background-size: $size $size;
  11. }
  12. @mixin single-column($media, $parent: '&') {
  13. .auto-columns #{$parent} {
  14. @media #{$media} {
  15. @content;
  16. }
  17. }
  18. .single-column #{$parent} {
  19. @content;
  20. }
  21. }
  22. @mixin limited-single-column($media, $parent: '&') {
  23. .auto-columns #{$parent}, .single-column #{$parent} {
  24. @media #{$media} {
  25. @content;
  26. }
  27. }
  28. }
  29. @mixin multi-columns($media, $parent: '&') {
  30. .auto-columns #{$parent} {
  31. @media #{$media} {
  32. @content;
  33. }
  34. }
  35. .multi-columns #{$parent} {
  36. @content;
  37. }
  38. }
  39. @mixin fullwidth-gallery {
  40. &.full-width {
  41. margin-left: -22px;
  42. margin-right: -22px;
  43. width: inherit;
  44. max-width: none;
  45. height: 250px;
  46. }
  47. }