change-avatar.less 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. //
  2. // Change Avatar Modal
  3. // --------------------------------------------------
  4. // Index
  5. .modal-change-avatar .modal-avatar-index {
  6. .avatar-preview {
  7. border-radius: @border-radius-large;
  8. margin: 0px auto;
  9. overflow: hidden;
  10. position: relative;
  11. width: 200px;
  12. height: 200px;
  13. .loader {
  14. display: none;
  15. position: absolute;
  16. top: 50px;
  17. height: 100px;
  18. .loader-spinning-wheel {
  19. border-width: 10px;
  20. border-color: #fff;
  21. border-left-color: transparent;
  22. border-right-color: transparent;
  23. width: 100px;
  24. height: 100px;
  25. }
  26. }
  27. &.preview-loading {
  28. img {
  29. .opacity(0.33);
  30. }
  31. .loader {
  32. display: block;
  33. }
  34. }
  35. @media (max-width: (@grid-float-breakpoint - 1)) {
  36. margin-bottom: @line-height-computed;
  37. width: 150px;
  38. height: 150px;
  39. img {
  40. width: 150px;
  41. height: 150px;
  42. }
  43. .loader {
  44. top: 25px;
  45. height: 100px;
  46. .loader-spinning-wheel {
  47. width: 100px;
  48. height: 100px;
  49. }
  50. }
  51. }
  52. }
  53. .btn {
  54. text-align: left;
  55. }
  56. }
  57. // Upload
  58. .modal-change-avatar .modal-avatar-upload {
  59. text-align: center;
  60. .btn-pick-file {
  61. background: transparent;
  62. border: 2px solid @gray-lighter;
  63. border-radius: @border-radius-large;
  64. padding: @padding-large-vertical @padding-large-horizontal * 1.5;
  65. .box-shadow(none);
  66. color: @gray-light;
  67. font-size: @font-size-large;
  68. text-align: center;
  69. &>.material-icon {
  70. display: block;
  71. margin: 0px auto;
  72. margin-bottom: @line-height-computed * .66;
  73. font-size: @line-height-computed * 2.5;
  74. width: @line-height-computed * 2.5;
  75. height: @line-height-computed * 2.5;
  76. }
  77. &:hover, &:active {
  78. border-color: @gray-light;
  79. }
  80. }
  81. .text-muted {
  82. margin-top: @line-height-computed * 0.66;
  83. }
  84. .upload-progress {
  85. img {
  86. border-radius: @border-radius-base;
  87. margin-bottom: @line-height-computed;
  88. max-height: 80px;
  89. width: auto;
  90. }
  91. .progress {
  92. width: 70%;
  93. margin: 0px auto;
  94. }
  95. }
  96. }
  97. // Crop
  98. .modal-avatar-crop .crop-form {
  99. margin: 0px auto;
  100. }
  101. // Gallery
  102. .modal-change-avatar .modal-avatar-gallery {
  103. padding-bottom: 0px;
  104. .avatars-gallery {
  105. margin-bottom: @line-height-computed;
  106. h3 {
  107. margin-top: 0px;
  108. }
  109. }
  110. .avatars-gallery-images {
  111. .row {
  112. margin-bottom: @line-height-computed / 2;
  113. }
  114. .btn {
  115. border-radius: @border-radius-base + 2px;
  116. border: 2px solid @gray-lighter;
  117. background: none;
  118. padding: 2px;
  119. &:hover, &:focus {
  120. border-color: @gray-light;
  121. }
  122. &.avatar-selected, &:active {
  123. border-color: @link-color;
  124. }
  125. img {
  126. border-radius: @border-radius-base;
  127. width: 100%;
  128. }
  129. }
  130. }
  131. }