_passport.scss 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. &__container {
  7. width: 100%;
  8. }
  9. &__intro {
  10. position: relative;
  11. width: 100%;
  12. &__bg {
  13. img {
  14. width: 100%;
  15. height: auto;
  16. }
  17. }
  18. &__container {
  19. position: absolute;
  20. left: 0;
  21. top: 0;
  22. width: 100%;
  23. height: 100%;
  24. display: flex;
  25. justify-content: center;
  26. align-items: center;
  27. flex-direction: column;
  28. }
  29. .photo {
  30. margin-bottom: 0.8em;
  31. &__img {
  32. width: 11em;
  33. height: 11em;
  34. }
  35. &__icon {
  36. left: 78%;
  37. }
  38. }
  39. &__content {
  40. color: $c-white;
  41. }
  42. &__nickname {
  43. margin-bottom: 0.1em;
  44. h2 {
  45. width: 100%;
  46. text-align: center;
  47. font-size: 2.4em;
  48. font-weight: 600;
  49. text-shadow: 0 0.1em 0.1em rgba(#000, 0.15);
  50. margin-bottom: 0;
  51. }
  52. }
  53. &__info {
  54. p {
  55. width: 100%;
  56. text-align: center;
  57. font-size: 1.6em;
  58. text-shadow: 0 0.1em 0.1em rgba(#000, 0.2);
  59. margin-bottom: 0;
  60. }
  61. }
  62. }
  63. &__toggle {
  64. width: 89%;
  65. margin: 0 auto 2em;
  66. box-shadow: 0 0.2em 0.5em rgba(#000, 0.2);
  67. border-radius: 1.5em;
  68. overflow: hidden;
  69. &.toggleClose {
  70. .passport__toggle__head {
  71. &::before {
  72. transform: translateY(-50%) rotate(0);
  73. }
  74. }
  75. .passport__toggle__body {
  76. display: none;
  77. }
  78. }
  79. &__head {
  80. position: relative;
  81. background-color: $c-blue-bright;
  82. padding: 1.5em;
  83. &::before {
  84. content: "";
  85. display: block;
  86. width: 2.5em;
  87. height: 2.5em;
  88. position: absolute;
  89. right: 1.5em;
  90. top: 50%;
  91. transform: translateY(-50%) rotate(-180deg);
  92. background: url(../images/arrow-down.png) no-repeat center center/contain;
  93. }
  94. p {
  95. color: $c-white;
  96. text-align: center;
  97. margin-bottom: 0;
  98. font-size: 1.6em;
  99. font-weight: 300;
  100. letter-spacing: 0.07em;
  101. }
  102. }
  103. &__body {
  104. background-color: $c-white;
  105. padding: 1.5em 1.5em 0;
  106. .tags {
  107. &__item {
  108. margin-bottom: 1.5em;
  109. padding: 0.5em 0.55em;
  110. }
  111. }
  112. }
  113. }
  114. }