Angular Web App
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

259 wiersze
5.2 KiB

  1. $header-height: 10rem;
  2. .navbar {
  3. display: flex;
  4. width: 100%;
  5. height: $header-height;
  6. align-items: center;
  7. justify-content: flex-start;
  8. .logo {
  9. width: 12rem;
  10. margin: 0 2rem;
  11. img {
  12. width: 100%;
  13. height: 100%;
  14. }
  15. }
  16. nav {
  17. margin: 0 2rem;
  18. @media print {
  19. display: none;
  20. }
  21. a {
  22. font-size: 1.6rem;
  23. letter-spacing: 0.5px;
  24. color: var(--dark-grey);
  25. margin-right: 2rem;
  26. &.active {
  27. text-decoration: underline;
  28. color: var(--highlight);
  29. }
  30. &:hover {
  31. text-decoration: underline;
  32. }
  33. }
  34. }
  35. .search-input {
  36. position: relative;
  37. margin-left: auto;
  38. @media print {
  39. display: none;
  40. }
  41. input {
  42. display: block;
  43. height: 5rem;
  44. border: 1px solid var(--border-grey);
  45. border-radius: 4rem;
  46. padding: 0 2.5rem;
  47. width: 35rem;
  48. font-size: 1.5rem;
  49. font-weight: 300;
  50. &::placeholder {
  51. color: var(--dark-grey);
  52. opacity: 0.6;
  53. }
  54. }
  55. img {
  56. position: absolute;
  57. width: 1.8rem;
  58. top: 1.5rem;
  59. right: 1.8rem;
  60. }
  61. }
  62. .notification-button {
  63. width: 5rem;
  64. height: 5rem;
  65. border-radius: 50%;
  66. border: none;
  67. position: relative;
  68. background-color: white;
  69. margin-left: 2rem;
  70. @media print {
  71. display: none;
  72. }
  73. &.active {
  74. box-shadow: 0px 0px 10px -3px var(--primary);
  75. img {
  76. filter: brightness(500%);
  77. }
  78. .badge {
  79. transform: scale(0);
  80. }
  81. &::before {
  82. background-color: var(--highlight);
  83. opacity: 1;
  84. filter: none;
  85. }
  86. }
  87. &:hover {
  88. box-shadow: 0px 0px 10px -3px var(--primary);
  89. }
  90. .badge {
  91. background-color: var(--highlight);
  92. color: white;
  93. font-size: 1.1rem;
  94. border-radius: 7px;
  95. position: absolute;
  96. right: 0;
  97. top: -0.5rem;
  98. width: 2rem;
  99. height: 2rem;
  100. border-radius: 50%;
  101. display: flex;
  102. align-items: center;
  103. justify-content: center;
  104. font-weight: 600;
  105. transition: transform 0.1s;
  106. }
  107. &::before {
  108. content: '';
  109. position: absolute;
  110. left: 0;
  111. top: 0;
  112. width: 100%;
  113. height: 100%;
  114. background-color: var(--secondary);
  115. opacity: 0.3;
  116. filter: brightness(110%);
  117. border-radius: 50%;
  118. }
  119. & > * {
  120. position: relative;
  121. }
  122. img {
  123. width: 40%;
  124. height: 40%;
  125. }
  126. }
  127. .profile-actions {
  128. margin: 0 2rem;
  129. display: flex;
  130. align-items: center;
  131. justify-content: center;
  132. height: 5rem;
  133. border-radius: 4rem;
  134. padding: 0 2rem;
  135. position: relative;
  136. overflow: hidden;
  137. width: 20rem;
  138. @media print {
  139. display: none;
  140. }
  141. &::before {
  142. content: '';
  143. position: absolute;
  144. left: 0;
  145. top: 0;
  146. width: 100%;
  147. height: 100%;
  148. background-color: var(--secondary);
  149. opacity: 0.3;
  150. filter: brightness(110%);
  151. }
  152. & > * {
  153. position: relative;
  154. }
  155. img {
  156. width: 1.5rem;
  157. }
  158. span {
  159. margin: 0 auto;
  160. color: var(--primary);
  161. font-size: 1.4rem;
  162. }
  163. }
  164. }
  165. .notifications-window {
  166. position: fixed;
  167. top: calc(#{$header-height} - 1rem);
  168. background-color: white;
  169. width: 40rem;
  170. box-shadow: 0px 0px 15px -3px var(--dark-grey);
  171. z-index: 2;
  172. right: 26rem;
  173. border-radius: 1.5rem;
  174. overflow: hidden;
  175. header {
  176. height: 5rem;
  177. padding: 0 2rem;
  178. display: flex;
  179. align-items: center;
  180. justify-content: flex-start;
  181. width: calc(100% - 2rem);
  182. border-radius: 1rem;
  183. margin: 1rem auto 0;
  184. position: relative;
  185. overflow: hidden;
  186. &::before {
  187. content: '';
  188. position: absolute;
  189. left: 0;
  190. top: 0;
  191. width: 100%;
  192. height: 100%;
  193. background-color: var(--border-grey);
  194. opacity: 0.7;
  195. }
  196. h4{
  197. position: relative;
  198. font-size: 1.7rem;
  199. color: var(--primary);
  200. font-weight: 500;
  201. }
  202. }
  203. .backdrop {
  204. position: fixed;
  205. left: 0;
  206. top: 0;
  207. width: 100vw;
  208. height: 100vw;
  209. z-index: 0;
  210. }
  211. }
  212. .page {
  213. height: calc(100vh - #{$header-height});
  214. margin: 0 auto;
  215. overflow: auto;
  216. width: calc(100% - 4rem);
  217. &.blur {
  218. filter: blur(5px);
  219. }
  220. }