usercp.less 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. //
  2. // User CP
  3. // --------------------------------------------------
  4. // Avatar CP home
  5. //
  6. //==
  7. .form-avatar-home {
  8. border-top: 1px solid @form-panel-border;
  9. padding: @form-panel-padding;
  10. padding-top: @line-height-computed;
  11. padding-bottom: @line-height-computed;
  12. .avatar-preview {
  13. max-width: 200px;
  14. }
  15. .usercp-avatar-options {
  16. ul {
  17. li {
  18. a, .btn-link {
  19. display: inline-block;
  20. margin: 0px;
  21. padding: 0px 0px;
  22. color: @state-default;
  23. line-height: @line-height-computed * 1.2;
  24. &:hover, &:focus {
  25. outline: none;
  26. color: @state-hover;
  27. text-decoration: none;
  28. }
  29. &:active {
  30. outline: none;
  31. color: @state-clicked;
  32. text-decoration: none;
  33. }
  34. }
  35. a {
  36. padding: 1px;
  37. }
  38. }
  39. }
  40. }
  41. }
  42. /* Big displays */
  43. @media (min-width: @screen-sm-min) {
  44. .usercp-avatar-options {
  45. padding-top: @line-height-computed / 2;
  46. padding-left: @line-height-computed / 2;
  47. }
  48. }
  49. // Uploaded avatar preview
  50. //
  51. //==
  52. .form-avatar-preview {
  53. overflow: auto;
  54. .preview-image {
  55. border-radius: @border-radius-base;
  56. margin-bottom: @line-height-computed;
  57. overflow: auto;
  58. width: 100%;
  59. text-align: center;
  60. img {
  61. border-radius: @border-radius-large;
  62. width: 90%;
  63. }
  64. }
  65. p {
  66. text-align: center;
  67. }
  68. .btn {
  69. display: block;
  70. margin-bottom: @line-height-computed;
  71. width: 100%;
  72. }
  73. }
  74. @media (min-width: @screen-sm-min) {
  75. .form-avatar-preview {
  76. .preview-image {
  77. float: left;
  78. width: auto;
  79. img {
  80. border-radius: @border-radius-base;
  81. margin-right: @line-height-computed;
  82. max-height: 36px;
  83. width: auto;
  84. }
  85. }
  86. p {
  87. position: relative;
  88. top: 4px;
  89. text-align: left;
  90. }
  91. .btn {
  92. width: auto;
  93. }
  94. }
  95. }
  96. // Drag and drop upload
  97. //
  98. //==
  99. .form-avatar-upload {
  100. border-top: 1px solid @form-panel-border;
  101. padding: @form-panel-padding;
  102. padding-top: @line-height-computed;
  103. padding-bottom: @line-height-computed;
  104. .drag-drop-area {
  105. background-color: @form-panel-bg;
  106. border: 6px dashed @state-default;
  107. border-radius: @border-radius-large;
  108. display: block;
  109. padding: (@line-height-computed * 2) @line-height-computed;
  110. color: @state-default;
  111. cursor: pointer;
  112. text-align: center;
  113. .fa {
  114. font-size: @line-height-computed * 3;
  115. margin-bottom: @line-height-computed;
  116. }
  117. p {
  118. margin-bottom: 0px;
  119. }
  120. &:hover {
  121. border-color: @state-hover;
  122. color: @state-hover;
  123. text-decoration: none;
  124. }
  125. &:active {
  126. border-color: @state-clicked;
  127. color: @state-clicked;
  128. text-decoration: none;
  129. }
  130. }
  131. }
  132. // Crop avatar
  133. .form-crop-avatar {
  134. border-top: 1px solid @form-panel-border;
  135. padding: @form-panel-padding;
  136. padding-top: @line-height-computed;
  137. padding-bottom: @line-height-computed;
  138. .crop-form-container {
  139. margin-left: auto;
  140. margin-right: auto;
  141. text-align: center;
  142. .cropped-image-border {
  143. background-color: @form-panel-bg;
  144. border-radius: @border-radius-small;
  145. .box-shadow(0px 0px 4px @gray);
  146. padding: 4px;
  147. margin-bottom: @line-height-computed / 2;
  148. }
  149. .btn-primary {
  150. display: inline-block;
  151. margin-left: auto;
  152. margin-right: auto;
  153. }
  154. }
  155. }
  156. // Avatar gallery
  157. //
  158. //==
  159. .avatar-gallery {
  160. .thumbnail {
  161. &:hover, &:focus {
  162. border-color: @state-hover;
  163. outline: none;
  164. }
  165. &:active {
  166. border-color: @state-clicked;
  167. outline: none;
  168. transition: border 0s;
  169. }
  170. }
  171. }