You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

148 lines
3.2 KiB

  1. /*
  2. * Callouts (from Twitter Bootstrap Documentation)
  3. *
  4. * Not quite alerts, but custom and helpful notes for folks reading the docs.
  5. * Requires a base and modifier class.
  6. */
  7. /* Common styles for all types */
  8. .bs-callout {
  9. padding: 20px;
  10. margin: 20px 0;
  11. border: 1px solid #eee;
  12. border-left-width: 5px;
  13. border-radius: 3px;
  14. }
  15. .bs-callout h4 {
  16. margin-top: 0;
  17. margin-bottom: 5px;
  18. }
  19. .bs-callout p:last-child {
  20. margin-bottom: 0;
  21. }
  22. .bs-callout code {
  23. border-radius: 3px;
  24. }
  25. .bs-callout+.bs-callout {
  26. margin-top: -5px;
  27. }
  28. .bs-callout-default {
  29. border-left-color: #777;
  30. }
  31. .bs-callout-default h4 {
  32. color: #777;
  33. }
  34. .bs-callout-primary {
  35. border-left-color: #428bca;
  36. }
  37. .bs-callout-primary h4 {
  38. color: #428bca;
  39. }
  40. .bs-callout-success {
  41. border-left-color: #5cb85c;
  42. }
  43. .bs-callout-success h4 {
  44. color: #5cb85c;
  45. }
  46. .bs-callout-danger {
  47. border-left-color: #d9534f;
  48. }
  49. .bs-callout-danger h4 {
  50. color: #d9534f;
  51. }
  52. .bs-callout-warning {
  53. border-left-color: #f0ad4e;
  54. }
  55. .bs-callout-warning h4 {
  56. color: #f0ad4e;
  57. }
  58. .bs-callout-info {
  59. border-left-color: #5bc0de;
  60. }
  61. .bs-callout-info h4 {
  62. color: #5bc0de;
  63. }
  64. .bootswatch-callout(@theme, @primary, @success, @info, @warning, @danger) {
  65. .@{theme} .bs-callout-primary {
  66. border-left-color: @primary;
  67. h4, .bs-callout-icon {
  68. color: @primary;
  69. }
  70. }
  71. .@{theme} .bs-callout-success {
  72. border-left-color: @success;
  73. h4, .bs-callout-icon {
  74. color: @success;
  75. }
  76. }
  77. .@{theme} .bs-callout-info {
  78. border-left-color: @info;
  79. h4, .bs-callout-icon {
  80. color: @info;
  81. }
  82. }
  83. .@{theme} .bs-callout-warning {
  84. border-left-color: @warning;
  85. h4, .bs-callout-icon {
  86. color: @warning;
  87. }
  88. }
  89. .@{theme} .bs-callout-danger {
  90. border-left-color: @danger;
  91. h4, .bs-callout-icon {
  92. color: @danger;
  93. }
  94. }
  95. }
  96. /**
  97. * Callauts for Bootswatch themes
  98. */
  99. .bootswatch-callout(cerulean, #2FA4E7, #73A839, #033C73, #DD5600, #C71C22);
  100. .bootswatch-callout(cosmo, #2780E3, #3FB618, #9954BB, #FF7518, #FF0039);
  101. .bootswatch-callout(cyborg, #2A9FD6, #77B300, #9933CC, #FF8800, #CC0000);
  102. .bootswatch-callout(darkly, #375A7F, #00BC8C, #3498DB, #F39C12, #E74C3C);
  103. .bootswatch-callout(flatly, #2C3E50, #18BC9C, #3498DB, #F39C12, #E74C3C);
  104. .bootswatch-callout(journal, #EB6864, #22B24C, #336699, #F5E625, #F57A00);
  105. .bootswatch-callout(lumen, #158CBA, #28B62C, #75CAEB, #FF851B, #FF4136);
  106. .bootswatch-callout(paper, #2196F3, #4CAF50, #9C27B0, #FF9800, #E51C23);
  107. .bootswatch-callout(readable, #4582EC, #3FAD46, #5BC0DE, #F0AD4E, #D9534F);
  108. .bootswatch-callout(sandstone, #325D88, #93C54B, #29ABE0, #F47C3C, #D9534F);
  109. .bootswatch-callout(simplex, #D9230F, #469408, #029ACF, #9B479F, #D9831F);
  110. .bootswatch-callout(slate, #7A8288, #62C462, #5BC0DE, #F89406, #EE5F5B);
  111. .bootswatch-callout(solar, #425358, #2AA198, #268BD2, #CB4B16, #D33682);
  112. .bootswatch-callout(spacelab, #446E9B, #3CB521, #3399F3, #D47500, #CD0200);
  113. .bootswatch-callout(superhero, #DF691A, #5CB85C, #5BC0DE, #F0AD4E, #D9534F);
  114. .bootswatch-callout(united, #E95420, #38B44A, #772953, #EFB73E, #DF382C);
  115. .bootswatch-callout(yeti, #008CBA, #43AC6A, #5BC0DE, #E99002, #F04124);
  116. /**
  117. * Fix for SVG icon
  118. */
  119. i.bs-callout-icon { font-size: 2em; }
  120. svg.bs-callout-icon { height: 32px; width: 32px; }