profile.styl 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. .bio
  2. text-align: center
  3. #profile .inner .bio h2
  4. font-size: 1.3em
  5. font-weight: bold
  6. margin-top: 15px
  7. #profile .inner .bio p
  8. margin: 5px 20px 10px 20px
  9. text-align: justify
  10. max-width: 300px
  11. line-height: 1.5em
  12. .profile-block
  13. padding: 15px 20px
  14. border-bottom: 1px solid color-border
  15. &:last-child
  16. border-bottom: none
  17. #profile
  18. display: none
  19. @media mq-normal
  20. display: block
  21. column(profile-column)
  22. .inner
  23. @extend $block
  24. margin-top: block-margin
  25. background: white
  26. .base-info
  27. #avatar
  28. display: block
  29. margin: 10px auto 20px
  30. width: profile-avatar-size
  31. height: profile-avatar-size
  32. #name, #title, #location
  33. display: block
  34. text-align: center
  35. #name
  36. font-size: 20px
  37. font-weight: 600
  38. #location
  39. font-size: font-size - 2
  40. margin-top: 5px
  41. color: color-default + #444
  42. .fa
  43. margin-right: 5px
  44. #follow
  45. color: white
  46. width: 150px
  47. height: 40px
  48. display: block
  49. font-size: 14px
  50. line-height: 40px
  51. text-align: center
  52. margin: 20px auto 10px
  53. background: #38b7ea
  54. border-radius: 20px
  55. transition: 0.2s ease
  56. &:hover
  57. background: #38b7ea + #111
  58. .article-info
  59. clearfix()
  60. padding: 0px
  61. .article-info-block
  62. width: 50%
  63. float: left
  64. padding: 20px 15px
  65. text-align: center
  66. box-sizing: border-box
  67. font-size: font-size + 6px
  68. span
  69. display: block
  70. font-size: font-size
  71. text-transform: uppercase
  72. &:first-child
  73. border-right: 1px solid color-border
  74. .contact-info
  75. .contact-list
  76. width: 100%
  77. td
  78. text-align: center
  79. font-size: font-size + 10px
  80. a
  81. position: relative
  82. transition: 0.2s ease
  83. color: color-default + #333
  84. &:hover
  85. color: color-default
  86. &:after
  87. right: -50%
  88. top: -41px
  89. color: white
  90. background: #333
  91. font-size: 14px
  92. content: attr(title)
  93. display: block
  94. padding: 5px 15px
  95. position: absolute
  96. white-space: nowrap
  97. border-radius: 2px
  98. text-transform: uppercase
  99. box-shadow: 0 0 2px rgba(0, 0, 0, 0.2)
  100. z-index: 1
  101. &:before
  102. top: -12px
  103. right: 8px
  104. border: solid
  105. border-color: #333 transparent
  106. border-width: 5px 5px 0 5px
  107. content: ""
  108. display: block
  109. position: absolute
  110. z-index: 2
  111. &.card
  112. top: 50px
  113. right: 20px
  114. z-index: 999
  115. display: block
  116. min-width: 280px
  117. position: absolute
  118. .profile-inner
  119. position: relative
  120. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2)
  121. &:before, &:after
  122. z-index: 1
  123. content: ''
  124. top: -20px
  125. right: 10px
  126. position: absolute
  127. border-width: 10px
  128. border-style: solid
  129. border-color: transparent transparent white transparent
  130. &:after
  131. z-index: 0
  132. border-color: transparent transparent color-border - #111 transparent