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.

84 lines
1.4 KiB

7 years ago
7 years ago
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: -14px;
  42. margin-right: -14px;
  43. width: inherit;
  44. max-width: none;
  45. height: 250px;
  46. border-radius: 0px;
  47. }
  48. }
  49. @mixin search-input() {
  50. outline: 0;
  51. box-sizing: border-box;
  52. width: 100%;
  53. border: none;
  54. box-shadow: none;
  55. font-family: inherit;
  56. background: $ui-base-color;
  57. color: $darker-text-color;
  58. font-size: 14px;
  59. margin: 0;
  60. &::-moz-focus-inner {
  61. border: 0;
  62. }
  63. &::-moz-focus-inner,
  64. &:focus,
  65. &:active {
  66. outline: 0 !important;
  67. }
  68. &:focus {
  69. background: lighten($ui-base-color, 4%);
  70. }
  71. @media screen and (max-width: 600px) {
  72. font-size: 16px;
  73. }
  74. }