_passport.scss 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. @charset "UTF-8";
  2. .passport {
  3. width: 100%;
  4. min-height: 100%;
  5. background: url(../images/passport-bg.png) no-repeat bottom center/contain, linear-gradient(to bottom, rgba(191,230,246,1) 0%,rgba(191,230,246,0) 100%);;
  6. .photo {
  7. .load {
  8. width: 50%;
  9. height: 50%;
  10. &-wrapp {
  11. width: 11em;
  12. height: 11em;
  13. }
  14. }
  15. .bubble-1, .bubble-2 {
  16. width: 2em;
  17. height: 2em;
  18. }
  19. }
  20. &__container {
  21. width: 100%;
  22. }
  23. &__intro {
  24. position: relative;
  25. width: 100%;
  26. &__bg {
  27. img {
  28. width: 100%;
  29. height: auto;
  30. }
  31. }
  32. &__container {
  33. position: absolute;
  34. left: 0;
  35. top: 0;
  36. width: 100%;
  37. height: 100%;
  38. display: flex;
  39. justify-content: center;
  40. align-items: center;
  41. flex-direction: column;
  42. }
  43. .photo {
  44. margin-bottom: 0.8em;
  45. &__img {
  46. width: 11em;
  47. height: 11em;
  48. }
  49. &__icon {
  50. left: 78%;
  51. }
  52. }
  53. &__content {
  54. color: $c-white;
  55. }
  56. &__nickname {
  57. margin-bottom: 0.1em;
  58. h2 {
  59. width: 100%;
  60. text-align: center;
  61. font-size: 2.4em;
  62. font-weight: 600;
  63. text-shadow: 0 0.1em 0.1em rgba(#000, 0.15);
  64. margin-bottom: 0;
  65. }
  66. }
  67. &__info {
  68. p {
  69. width: 100%;
  70. text-align: center;
  71. font-size: 1.6em;
  72. text-shadow: 0 0.1em 0.1em rgba(#000, 0.2);
  73. margin-bottom: 0;
  74. }
  75. }
  76. }
  77. &__toggle {
  78. width: 89%;
  79. margin: 0 auto 2em;
  80. box-shadow: 0 0.2em 0.5em rgba(#000, 0.2);
  81. border-radius: 1.5em;
  82. overflow: hidden;
  83. &.toggleClose {
  84. .passport__toggle__head {
  85. &::before {
  86. transform: translateY(-50%) rotate(0);
  87. }
  88. }
  89. .passport__toggle__body {
  90. display: none;
  91. }
  92. }
  93. &__head {
  94. position: relative;
  95. background-color: $c-blue-bright;
  96. padding: 1.5em;
  97. &::before {
  98. content: "";
  99. display: block;
  100. width: 2.5em;
  101. height: 2.5em;
  102. position: absolute;
  103. right: 1.5em;
  104. top: 50%;
  105. transform: translateY(-50%) rotate(-180deg);
  106. background: url(../images/arrow-down.png) no-repeat center center/contain;
  107. }
  108. p {
  109. color: $c-white;
  110. text-align: center;
  111. margin-bottom: 0;
  112. font-size: 1.6em;
  113. font-weight: 300;
  114. letter-spacing: 0.07em;
  115. }
  116. }
  117. &__body {
  118. background-color: $c-white;
  119. padding: 1.5em 1.5em 0;
  120. .tags {
  121. &__item {
  122. margin-bottom: 1.5em;
  123. padding: 0.5em 0.55em;
  124. }
  125. }
  126. }
  127. }
  128. &__edit {
  129. position: fixed;
  130. left: 50%;
  131. transform: translateX(-50%);
  132. bottom: 5em;
  133. width: 89%;
  134. margin: 0 auto;
  135. box-shadow: 0 0.2em 0.5em rgba(#000, 0.2);
  136. background-color: rgba($c-white, 0.8);
  137. border: 0.25em solid $c-blue-bright;
  138. p {
  139. color: $c-blue-bright;
  140. font-weight: 500;
  141. letter-spacing: 0.15em;
  142. }
  143. }
  144. }