guides.scss 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. @import "vars";
  2. @import "mixins";
  3. $guide-gutter: 50px !default;
  4. .space-guides {
  5. position:absolute;
  6. height:auto;
  7. width: auto;
  8. z-index: 5000;
  9. pointer-events: none !important;
  10. top: 0px;
  11. left: 0px;
  12. right: 0px;
  13. bottom: 0px;
  14. // compensate for border spacing
  15. // width: auto;
  16. // left: -50px;
  17. // right: -50px;
  18. table {
  19. @include box-sizing(content-box);
  20. width: 100%; // space width + (border spacing * 2)
  21. height:100%;
  22. position:absolute;
  23. table-layout: auto;
  24. border-collapse: separate;
  25. border-spacing: $guide-gutter 0px;
  26. // border-collapse: collapse;
  27. // border-spacing: 0px 0px;
  28. .column td {
  29. border:1px solid rgba(40,140,215,0.6);;
  30. // background-color:rgba(40,140,215,0.125);
  31. &:first-child {
  32. // border-left:1px solid #448afe;
  33. }
  34. // -webkit-box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.075), 0 0 10px rgba(255,255,255, 0.075);
  35. }
  36. .margin-top td,
  37. .margin-bottom td {
  38. // background-color:rgba(40,140,215,0.1);
  39. border-top:none;
  40. border-bottom:none;
  41. border-right:1px solid rgba(40,140,215,0.125);
  42. border-left:1px solid rgba(40,140,215,0.125);;
  43. height: $guide-gutter;
  44. }
  45. &.no-gutter .margin-top td:first-child,
  46. &.no-gutter .margin-bottom td:first-child {
  47. border-left:1px solid rgba(40,140,215,0.125);
  48. }
  49. &.no-gutter .column td,
  50. &.no-gutter .margin-top td,
  51. &.no-gutter .margin-bottom td{
  52. border-left:none;
  53. }
  54. }
  55. }