profile.less 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. //
  2. // User Profile
  3. // --------------------------------------------------
  4. // Profile header
  5. //
  6. //==
  7. .user-profile {
  8. .profile-header {
  9. padding: 0px;
  10. padding-top: @line-height-computed;
  11. border-bottom-width: 1px;
  12. h1 {
  13. &>small {
  14. &>a, &>a:link, &>a:visited, &>span {
  15. background-color: fadeOut(@text-muted, 50%);
  16. border-radius: @border-radius-base;
  17. display: inline-block;
  18. padding: @padding-small-vertical @padding-small-horizontal;
  19. position: relative;
  20. top: -4px;
  21. color: @body-bg;
  22. }
  23. &>a {
  24. &:hover {
  25. background-color: fadeOut(@text-muted, 15%);
  26. text-decoration: none;
  27. }
  28. &:active {
  29. background-color: @state-clicked;
  30. text-decoration: none;
  31. }
  32. }
  33. }
  34. }
  35. .page-actions {
  36. .btn {
  37. .btn-sm();
  38. &.btn-follow {
  39. color: @brand-follow;
  40. &.active {
  41. .misago-button-active-flavour(#fff, @brand-follow, darken(@brand-follow, 13%));
  42. }
  43. }
  44. &.btn-ban {
  45. color: @brand-danger;
  46. &.active {
  47. .misago-button-active-flavour(#fff, @brand-danger, darken(@brand-danger, 13%));
  48. }
  49. }
  50. }
  51. }
  52. }
  53. }
  54. // Avatar
  55. //
  56. //==
  57. .user-profile {
  58. .profile-side {
  59. .user-avatar {
  60. background-color: #fff;
  61. border-radius: @border-radius-large;
  62. .box-shadow(0px 0px 0px 2px darken(@body-bg, 5%));
  63. padding: 4px;
  64. margin-top: @line-height-computed;
  65. margin-bottom: @line-height-computed;
  66. }
  67. }
  68. }
  69. /* Big displays */
  70. @media (min-width: @screen-sm-min) {
  71. .user-profile {
  72. .profile-side {
  73. .user-avatar {
  74. margin-top: (@line-height-computed * 4.75) * -1;
  75. }
  76. }
  77. }
  78. }
  79. // Username
  80. //
  81. //==
  82. /* Big displays */
  83. @media (min-width: @screen-sm-min) {
  84. .user-profile {
  85. .profile-header {
  86. .user-name {
  87. float: left;
  88. }
  89. }
  90. }
  91. }
  92. // Details
  93. //
  94. //==
  95. .user-profile {
  96. .profile-header {
  97. .user-details {
  98. padding-top: @line-height-computed / 3;
  99. clear: both;
  100. ul {
  101. overflow: auto;
  102. li {
  103. margin-right: @line-height-computed;
  104. color: fadeOut(@text-color, 40%);
  105. a:link, a:visited {
  106. color: fadeOut(@text-color, 40%);
  107. }
  108. a:hover {
  109. color: @state-hover;
  110. text-decoration: none;
  111. }
  112. a:active {
  113. color: @state-clicked;
  114. }
  115. }
  116. }
  117. }
  118. }
  119. }
  120. // Username history
  121. //
  122. //==
  123. .user-profile {
  124. .username-history {
  125. p {
  126. margin: 0px;
  127. margin-top: 3px;
  128. a {
  129. &:link, &:visited {
  130. color: @state-hover;
  131. font-weight: bold;
  132. }
  133. &:hover {
  134. color: @state-hover;
  135. text-decoration: underline;
  136. }
  137. &:active {
  138. color: @state-clicked;
  139. }
  140. }
  141. img {
  142. border-radius: @border-radius-small;
  143. margin-top: -1px;
  144. margin-right: @line-height-computed / 5;
  145. height: 22px;
  146. width: 22px;
  147. }
  148. abbr {
  149. text-decoration: none;
  150. border-bottom: none;
  151. }
  152. }
  153. hr {
  154. margin: (@line-height-computed / 2) 0px;
  155. }
  156. }
  157. }