bootstrap-dialog.less 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. .bootstrap-dialog {
  2. .modal-header {
  3. border-top-left-radius: 4px;
  4. border-top-right-radius: 4px;
  5. }
  6. .bootstrap-dialog-title {
  7. color: #fff;
  8. display: inline-block;
  9. font-size: 16px;
  10. }
  11. .bootstrap-dialog-message {
  12. font-size: 14px;
  13. }
  14. .bootstrap-dialog-button-icon {
  15. margin-right: 3px;
  16. }
  17. .bootstrap-dialog-close-button {
  18. font-size: 20px;
  19. float: right;
  20. filter:alpha(opacity=90);
  21. -moz-opacity:0.9;
  22. -khtml-opacity: 0.9;
  23. opacity: 0.9;
  24. &:hover {
  25. cursor: pointer;
  26. filter: alpha(opacity=100);
  27. -moz-opacity: 1;
  28. -khtml-opacity: 1;
  29. opacity: 1;
  30. }
  31. }
  32. /* dialog types */
  33. &.type-default {
  34. .modal-header {
  35. background-color: #fff;
  36. }
  37. .bootstrap-dialog-title {
  38. color: #333;
  39. }
  40. }
  41. &.type-info {
  42. .modal-header {
  43. background-color: #5bc0de;
  44. }
  45. }
  46. &.type-primary {
  47. .modal-header {
  48. background-color: #428bca;
  49. }
  50. }
  51. &.type-success {
  52. .modal-header {
  53. background-color: #5cb85c;
  54. }
  55. }
  56. &.type-warning {
  57. .modal-header {
  58. background-color: #f0ad4e;
  59. }
  60. }
  61. &.type-danger {
  62. .modal-header {
  63. background-color: #d9534f;
  64. }
  65. }
  66. &.size-large {
  67. .bootstrap-dialog-title {
  68. font-size: 24px;
  69. }
  70. .bootstrap-dialog-close-button {
  71. font-size: 30px;
  72. }
  73. .bootstrap-dialog-message {
  74. font-size: 18px;
  75. }
  76. }
  77. /**
  78. * Icon animation
  79. * Copied from font-awesome: http://fontawesome.io/
  80. **/
  81. .icon-spin {
  82. display: inline-block;
  83. -moz-animation: spin 2s infinite linear;
  84. -o-animation: spin 2s infinite linear;
  85. -webkit-animation: spin 2s infinite linear;
  86. animation: spin 2s infinite linear;
  87. }
  88. @-moz-keyframes spin {
  89. 0% {
  90. -moz-transform: rotate(0deg);
  91. }
  92. 100% {
  93. -moz-transform: rotate(359deg);
  94. }
  95. }
  96. @-webkit-keyframes spin {
  97. 0% {
  98. -webkit-transform: rotate(0deg);
  99. }
  100. 100% {
  101. -webkit-transform: rotate(359deg);
  102. }
  103. }
  104. @-o-keyframes spin {
  105. 0% {
  106. -o-transform: rotate(0deg);
  107. }
  108. 100% {
  109. -o-transform: rotate(359deg);
  110. }
  111. }
  112. @-ms-keyframes spin {
  113. 0% {
  114. -ms-transform: rotate(0deg);
  115. }
  116. 100% {
  117. -ms-transform: rotate(359deg);
  118. }
  119. }
  120. @keyframes spin {
  121. 0% {
  122. transform: rotate(0deg);
  123. }
  124. 100% {
  125. transform: rotate(359deg);
  126. }
  127. }
  128. /** End of icon animation **/
  129. }