change-avatar.less 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. // Gallery
  58. .modal-change-avatar .modal-avatar-gallery {
  59. padding-bottom: 0px;
  60. .avatars-gallery {
  61. margin-bottom: @line-height-computed;
  62. h3 {
  63. margin-top: 0px;
  64. }
  65. }
  66. .avatars-gallery-images {
  67. .row {
  68. margin-bottom: @line-height-computed / 2;
  69. }
  70. .btn {
  71. border-radius: @border-radius-base + 2px;
  72. border: 2px solid @gray-lighter;
  73. background: none;
  74. padding: 2px;
  75. &:hover, &:focus {
  76. border-color: @gray-light;
  77. }
  78. &.avatar-selected, &:active {
  79. border-color: @link-color;
  80. }
  81. img {
  82. border-radius: @border-radius-base;
  83. width: 100%;
  84. }
  85. }
  86. }
  87. }