Sprankelprachtig aan/afmeldsysteem

application.scss 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. /*
  2. * This is a manifest file that'll be compiled into application.css, which will include all the files
  3. * listed below.
  4. *
  5. * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
  6. * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
  7. *
  8. * You're free to add application-wide styles to this file and they'll appear at the bottom of the
  9. * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
  10. * files in this directory. Styles in this file should be added after the last require_* statement.
  11. * It is generally better to create a new file per style scope.
  12. *
  13. *= require_self
  14. *= require_tree .
  15. */
  16. @import "bootstrap-sprockets";
  17. @import "bootstrap";
  18. @import "font-awesome-sprockets";
  19. @import "font-awesome";
  20. @import "editable/bootstrap-editable";
  21. /* Horizontally distribute ul items.
  22. *
  23. * Adapted from the following StackOverflow answer:
  24. * http://stackoverflow.com/a/13505797 , by user 'joshnh'
  25. * Licensed under CC-BY-SA 3.0 as per the StackOverflow TOS.
  26. *
  27. */
  28. ul.hdis {
  29. text-align: justify;
  30. padding-left: 0 !important;
  31. }
  32. ul.hdis:after {
  33. content: '';
  34. display: inline-block;
  35. width: 100%;
  36. }
  37. ul.hdis:before {
  38. content: '';
  39. display: block;
  40. margin-top: -1.25em;
  41. }
  42. ul.hdis li {
  43. display: inline-block;
  44. margin-right: -.25em;
  45. position: relative;
  46. top: 1.25em;
  47. }
  48. /* End of CC-BY-SA code. */
  49. /* Don't overlap with the menu. */
  50. body {
  51. padding-top: 70px;
  52. }
  53. /* Force .btn-groups to not break */
  54. table .btn-group {
  55. display: flex;
  56. }
  57. .editable.editable-empty {
  58. color: inherit;
  59. }
  60. /* https://stackoverflow.com/questions/26923543/why-does-a-table-in-a-collapsible-bootstrap-panel-change-width */
  61. table.collapse.in {
  62. display: table;
  63. }
  64. /* Toggles visibility based on aria-expanded of parent. */
  65. [aria-expanded="true"] > .sv-show-expanded {
  66. display: inline;
  67. }
  68. [aria-expanded="true"] > .sv-show-collapsed {
  69. display: none;
  70. }
  71. [aria-expanded="false"] > .sv-show-expanded {
  72. display: none;
  73. }
  74. [aria-expanded="false"] > .sv-show-collapsed {
  75. display: inline;
  76. }
  77. /* Fix ridiculous margins with pagination */
  78. .sv-nomargins > nav.pagination {
  79. margin-top: 0;
  80. margin-bottom: 0;
  81. }
  82. .sv-nomargins > nav.pagination > ul.pagination {
  83. margin-top: 0;
  84. margin-bottom: 0;
  85. }
  86. /* Ellipsis fixes for previous/next buttons. */
  87. .ellipsize-50 {
  88. overflow: hidden;
  89. text-overflow: ellipsis;
  90. max-width: 50%;
  91. }