React app
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

358 行
6.7 KiB

  1. .pageHeader {
  2. background-color: var(--orange);
  3. text-align: center;
  4. padding: 1rem 0 0.5rem;
  5. svg {
  6. transform: scale(0.9);
  7. }
  8. }
  9. .upfold {
  10. background-color: var(--orange);
  11. display: flex;
  12. align-items: center;
  13. justify-content: space-between;
  14. padding: 0 3rem 5rem;
  15. border-bottom-right-radius: 3rem;
  16. border-bottom-left-radius: 3rem;
  17. .profileImage {
  18. display: block;
  19. position: relative;
  20. width: 10rem;
  21. height: 10rem;
  22. [class*="CircularProgressbar"] {
  23. width: 100%;
  24. height: 100%;
  25. position: absolute;
  26. left: 0;
  27. top: 0;
  28. }
  29. img {
  30. width: 100%;
  31. height: 100%;
  32. border-radius: 50%;
  33. object-fit: cover;
  34. object-position: center;
  35. display: block;
  36. transform: scale(0.8);
  37. }
  38. svg {
  39. position: absolute;
  40. bottom: -1rem;
  41. right: calc(50% - 3rem);
  42. width: 6rem;
  43. height: 6rem;
  44. }
  45. }
  46. .userDetails {
  47. width: calc(100% - 12rem);
  48. display: grid;
  49. h2 {
  50. grid-column-start: 1;
  51. grid-column-end: 4;
  52. font-size: 1.7rem;
  53. color: var(--black);
  54. }
  55. .stat {
  56. margin-top: 1rem;
  57. color: var(--brownish-black);
  58. line-height: 1.2;
  59. h5 {
  60. font-size: 1.6rem;
  61. }
  62. label {
  63. font-size: 1.6rem;
  64. }
  65. }
  66. }
  67. }
  68. .searchBar {
  69. background-color: white;
  70. display: flex;
  71. border-radius: 3rem;
  72. height: 5rem;
  73. width: calc(100% - 6rem);
  74. margin: -2.5rem auto 2.5rem;
  75. align-items: center;
  76. justify-content: space-between;
  77. box-shadow: 0px 5px 30px -20px var(--grey);
  78. input {
  79. height: 100%;
  80. border: 0;
  81. width: calc(100% - 5rem);
  82. background-color: transparent;
  83. padding-left: 2rem;
  84. font-size: 1.4rem;
  85. }
  86. svg {
  87. width: 5rem;
  88. fill: var(--red);
  89. }
  90. }
  91. .blockHeader {
  92. display: flex;
  93. align-items: center;
  94. justify-content: flex-start;
  95. h4 {
  96. font-size: 1.4rem;
  97. font-weight: 600;
  98. color: var(--black);
  99. flex-grow: 1;
  100. svg {
  101. width: 2rem;
  102. height: 2rem;
  103. fill: var(--black);
  104. vertical-align: middle;
  105. margin-right: 1rem;
  106. }
  107. }
  108. button, a {
  109. background-color: var(--teal);
  110. width: 3rem;
  111. height: 3rem;
  112. border: none;
  113. border-radius: 50%;
  114. display: flex;
  115. align-items: center;
  116. justify-content: center;
  117. margin-left: 1rem;
  118. &.expandButton {
  119. background-color: var(--red);
  120. }
  121. svg {
  122. fill: white;
  123. width: 1.2rem;
  124. }
  125. }
  126. }
  127. $block-padding: 0 2rem;
  128. .List {
  129. padding: #{$block-padding};
  130. ul {
  131. list-style: none;
  132. }
  133. li {
  134. display: flex;
  135. justify-content: space-between;
  136. align-items: center;
  137. margin: 2rem 0;
  138. &:nth-child(5n - 4) .icon {
  139. background-color: var(--red);
  140. }
  141. &:nth-child(5n - 3) .icon {
  142. background-color: var(--orange);
  143. }
  144. &:nth-child(5n - 2) .icon {
  145. background-color: var(--blue);
  146. }
  147. &:nth-child(5n - 1) .icon {
  148. background-color: var(--teal);
  149. }
  150. }
  151. .icon {
  152. width: 4rem;
  153. height: 4rem;
  154. background-color: var(--grey);
  155. display: flex;
  156. align-items: center;
  157. justify-content: center;
  158. border-radius: 50%;
  159. svg {
  160. fill: white;
  161. width: 3rem;
  162. }
  163. }
  164. .info {
  165. width: calc(100% - 5rem);
  166. label, span {
  167. display: block;
  168. }
  169. label {
  170. font-size: 1.2rem;
  171. color: var(--black);
  172. font-weight: 700;
  173. }
  174. span {
  175. font-size: 1rem;
  176. color: var(--grey);
  177. }
  178. }
  179. }
  180. .Shelf {
  181. padding: #{$block-padding};
  182. margin: 2rem 0;
  183. ul {
  184. list-style: none;
  185. display: grid;
  186. grid-template-columns: 1fr 1fr;
  187. grid-gap: 2rem;
  188. padding: 2rem 0;
  189. }
  190. [class*="CircularProgressbar"] {
  191. width: 100%;
  192. height: 100%;
  193. }
  194. .progress {
  195. position: relative;
  196. width: 7rem;
  197. height: 7rem;
  198. .text {
  199. position: absolute;
  200. left: 0;
  201. top: 0;
  202. height: 100%;
  203. display: flex;
  204. align-items: center;
  205. justify-content: center;
  206. width: 100%;
  207. text-align: center;
  208. font-size: 1.4rem;
  209. color: white;
  210. font-weight: 600;
  211. }
  212. }
  213. li {
  214. border-radius: 3rem;
  215. padding: 1.5rem;
  216. &:nth-child(5n - 4) {
  217. background-color: var(--orange);
  218. }
  219. &:nth-child(5n - 3) {
  220. background-color: var(--blue);
  221. }
  222. &:nth-child(5n - 2) {
  223. background-color: var(--red);
  224. }
  225. &:nth-child(5n - 1) {
  226. background-color: var(--teal);
  227. }
  228. }
  229. h5 {
  230. font-size: 1.2rem;
  231. color: white;
  232. font-weight: 600;
  233. margin-top: 1rem;
  234. }
  235. p {
  236. font-size: 1.1rem;
  237. color: white;
  238. &:last-child {
  239. margin-top: 1rem;
  240. }
  241. }
  242. }
  243. .Grid {
  244. padding: #{$block-padding};
  245. ul {
  246. list-style: none;
  247. display: grid;
  248. grid-template-columns: 1fr 1fr;
  249. }
  250. li {
  251. display: flex;
  252. justify-content: space-between;
  253. align-items: center;
  254. margin: 2rem 0;
  255. &:nth-child(5n - 4) .icon {
  256. background-color: var(--orange);
  257. }
  258. &:nth-child(5n - 3) .icon {
  259. background-color: var(--blue);
  260. }
  261. &:nth-child(5n - 2) .icon {
  262. background-color: var(--red);
  263. }
  264. &:nth-child(5n - 1) .icon {
  265. background-color: var(--teal);
  266. }
  267. }
  268. .icon {
  269. width: 4.5rem;
  270. height: 4.5rem;
  271. background-color: var(--grey);
  272. display: flex;
  273. align-items: center;
  274. justify-content: center;
  275. border-radius: 1rem;
  276. svg {
  277. fill: white;
  278. width: 2rem;
  279. }
  280. }
  281. .info {
  282. width: calc(100% - 5.5rem);
  283. label, span {
  284. display: block;
  285. }
  286. label {
  287. font-size: 1.2rem;
  288. color: var(--black);
  289. font-weight: 700;
  290. }
  291. span {
  292. font-size: 1rem;
  293. color: var(--grey);
  294. }
  295. }
  296. }