profile.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. @import "vars";
  2. @import "mixins";
  3. #short-profile {
  4. position: absolute;
  5. top: 50%;
  6. left: 50%;
  7. width: 300px;
  8. height: 200px;
  9. border-radius: $radius;
  10. background-color: white;
  11. box-shadow: 0 1px 10px rgba(0,0,0,0.05);
  12. z-index: 5000;
  13. #short-profile-header {
  14. height: 100px;
  15. width: 300px;
  16. border-top-left-radius: $radius;
  17. border-top-right-radius: $radius;
  18. position: relative;
  19. background-size: cover;
  20. background-position: center;
  21. background-color: rgba(0,0,0,0.1);
  22. }
  23. #short-profile-image {
  24. position: absolute;
  25. bottom: -30px;
  26. left: 50%;
  27. margin-left: -40px;
  28. }
  29. #short-profile-actions {
  30. position: absolute;
  31. top: 0;
  32. right: 0;
  33. margin: 10px;
  34. }
  35. #short-profile-details {
  36. padding-top: 40px;
  37. .nickname,
  38. .bio {
  39. text-align: center;
  40. display: block;
  41. }
  42. .bio { color: $medium;}
  43. .nickname {color: $darker; font-size: 18px;}
  44. }
  45. }
  46. #profile-details {
  47. padding: 30px 40px;
  48. background-color: white;
  49. @include clearfix();
  50. text-align: center;
  51. position: relative;
  52. .profile-head {
  53. margin-bottom: 20px;
  54. }
  55. .profile-image {
  56. position: relative;
  57. margin: auto;
  58. display: inline-block;
  59. margin-bottom: 20px;
  60. line-height: 200px;
  61. width: 200px;
  62. height: 200px;
  63. border: 4px solid white;
  64. border-radius: 8px;
  65. box-shadow: 0 1px 10px rgba(0,0,0,0.05);
  66. }
  67. .profile-cover {
  68. position: absolute;
  69. height: 200px;
  70. width: 100%;
  71. top: 0;
  72. left: 0;
  73. background-size: cover;
  74. background-position: center;
  75. z-index: 0;
  76. }
  77. .profile-username {
  78. margin: 0;
  79. font-size: 20px;
  80. color: $darker;
  81. }
  82. .profile-description {
  83. margin: 0;
  84. font-size: 20px;
  85. }
  86. ul {
  87. list-style: none;
  88. margin: 0;
  89. padding: 0;
  90. // text-align: center;
  91. margin-top: -3px;
  92. li {
  93. vertical-align: middle;
  94. display: inline-block;
  95. // margin: 0px 7px;
  96. margin-right: 3px;
  97. color: $medium;
  98. text-transform: uppercase;
  99. font-family: $main-font;
  100. font-size: 11px;
  101. opacity: 0.5;
  102. &:hover {opacity: 1; }
  103. > .icon {margin-right: 3px; }
  104. a {
  105. color: $medium;
  106. &:hover {color: $blue; }
  107. }
  108. }
  109. }
  110. }
  111. #account {
  112. padding-top: 64px;
  113. #cover-image {
  114. position: absolute;
  115. height: 100%;
  116. width: 100%;
  117. top: 0;
  118. left: 0;
  119. opacity: 0.2;
  120. background-size: cover;
  121. background-position: center;
  122. }
  123. #profile-image {
  124. position: relative;
  125. img {
  126. border-radius: $radius;
  127. overflow: hidden;
  128. }
  129. #remove-profile-image {
  130. position: absolute;
  131. top: 0;
  132. left: 0;
  133. margin: -16px;
  134. }
  135. }
  136. }