_global.scss 886 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. // Global component styles
  2. html {
  3. position: relative;
  4. min-height: 100%;
  5. }
  6. body {
  7. height: 100%;
  8. }
  9. a {
  10. &:focus {
  11. outline: none;
  12. }
  13. }
  14. // Main page wrapper
  15. #wrapper {
  16. display: flex;
  17. #content-wrapper {
  18. background-color: $gray-100;
  19. width: 100%;
  20. overflow-x: hidden;
  21. #content {
  22. flex: 1 0 auto;
  23. }
  24. }
  25. }
  26. // Set container padding to match gutter width instead of default 15px
  27. .container,
  28. .container-fluid {
  29. padding-left: $grid-gutter-width;
  30. padding-right: $grid-gutter-width;
  31. }
  32. // Scroll to top button
  33. .scroll-to-top {
  34. position: fixed;
  35. right: 1rem;
  36. bottom: 1rem;
  37. display: none;
  38. width: 2.75rem;
  39. height: 2.75rem;
  40. text-align: center;
  41. color: $white;
  42. background: fade-out($gray-800, .5);
  43. line-height: 46px;
  44. &:focus,
  45. &:hover {
  46. color: white;
  47. }
  48. &:hover {
  49. background: $gray-800;
  50. }
  51. i {
  52. font-weight: 800;
  53. }
  54. }