_home.scss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. .homepage header {
  2. @apply w-text-primary;
  3. display: flex;
  4. flex-flow: row nowrap;
  5. gap: 1em;
  6. .col1 {
  7. width: 50px;
  8. margin-inline-end: 1em;
  9. padding: 0;
  10. // make way for the nav-menu button on mobile
  11. @include media-breakpoint-down(xs) {
  12. position: relative;
  13. inset-inline-start: $mobile-nav-indent;
  14. }
  15. }
  16. .avatar {
  17. margin-top: 0.5em;
  18. flex-shrink: 0;
  19. }
  20. .user-name {
  21. font-size: 1.3em;
  22. font-weight: 600;
  23. }
  24. }
  25. .summary {
  26. @include clearfix();
  27. margin-bottom: 2em;
  28. padding-top: 2em;
  29. ul.stats {
  30. @include clearfix();
  31. @include unlist();
  32. width: 100%;
  33. margin-inline-start: -$padding;
  34. li {
  35. @include column(4);
  36. margin-bottom: 2em;
  37. @include media-breakpoint-down(sm) {
  38. width: 50%;
  39. }
  40. }
  41. li.icon::before,
  42. li svg.icon {
  43. opacity: 0.2;
  44. font-size: 6em;
  45. float: left;
  46. @include media-breakpoint-down(md) {
  47. font-size: 5em;
  48. }
  49. @include media-breakpoint-down(sm) {
  50. font-size: 4.5em;
  51. }
  52. @include media-breakpoint-down(xs) {
  53. font-size: 4em;
  54. }
  55. // Media for Windows High Contrast Mode
  56. @media (forced-colors: $media-forced-colours) {
  57. color: $system-color-link-text;
  58. opacity: 1;
  59. }
  60. }
  61. li svg.icon {
  62. width: 1em;
  63. height: 1em;
  64. margin-inline-end: 0.5em;
  65. }
  66. a {
  67. position: relative;
  68. display: block;
  69. width: 100%;
  70. height: 100%;
  71. }
  72. span {
  73. font-family: $font-sans;
  74. display: block;
  75. font-size: 4em;
  76. line-height: 1em;
  77. font-weight: 300;
  78. @include media-breakpoint-down(md) {
  79. font-size: 3em;
  80. }
  81. @include media-breakpoint-down(sm) {
  82. font-size: 2.5em;
  83. }
  84. @include media-breakpoint-down(xs) {
  85. font-size: 2em;
  86. }
  87. }
  88. }
  89. .search-bar {
  90. @include clearfix();
  91. border-top: 1px solid $color-grey-4;
  92. padding: 1em 0 0;
  93. h2 {
  94. display: inline-block;
  95. margin-inline-end: 1em;
  96. }
  97. .fields {
  98. display: inline-block;
  99. clear: none;
  100. }
  101. .field {
  102. display: inline-block;
  103. }
  104. label {
  105. display: inline-block;
  106. }
  107. input {
  108. background-color: $color-white;
  109. }
  110. }
  111. }
  112. .homepage .object.collapsible .object-layout .title-wrapper::before {
  113. display: none;
  114. }
  115. .homepage .object-layout {
  116. // enforce flex display at all screen sizes
  117. display: flex;
  118. flex-flow: row-reverse wrap;
  119. .listing--push-top {
  120. margin-top: 3em;
  121. thead {
  122. display: table-row-group;
  123. margin-bottom: 0;
  124. }
  125. }
  126. .listing {
  127. margin-bottom: 0;
  128. }
  129. .listing tbody {
  130. border-bottom: 0;
  131. }
  132. }
  133. .homepage .task .icon {
  134. margin-inline-start: -1.75em; // pull out the icon so it aligns with no-icon text
  135. }