styles.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. /* You can add global styles to this file, and also import other style files */
  2. // VARIABLES: Not sure all these are needed - REFACTOR UNUSED OUT
  3. // --------------
  4. // Colour palette
  5. $col-blue-lightest: #ebf5f7;
  6. $col-blue-primary: #0085bc;
  7. $col-charcoal: #444;
  8. // --------------------------------------------------------------------------------------------------------------------
  9. // Clarity Dependency SCSS
  10. @import "../node_modules/@clr/ui/src/utils/dependencies.clarity"; // Includes light theme
  11. // PUT (or import) CLARITY VARIABLE OVERRIDES HERE
  12. $clr-forms-select-hover-background: $col-blue-lightest;
  13. // Clarity Component SCSS
  14. @import "../node_modules/@clr/ui/src/utils/components.clarity";
  15. .central-col {
  16. max-width: 80%;
  17. margin: 0 auto;
  18. }
  19. h1 {
  20. color: $col-blue-primary;
  21. border-bottom: 4px $col-blue-primary solid;
  22. margin-bottom: 1em;
  23. }
  24. .form-group {
  25. margin-bottom: 4px;
  26. }
  27. div.clr-col-sm-8 {
  28. margin-bottom: 2px;
  29. }
  30. label.clr-col-sm-4 {
  31. background-color: $col-blue-lightest;
  32. border-left: 15px white solid;
  33. padding-top: 4px;
  34. padding-bottom: 4px;
  35. margin-bottom: 2px;
  36. }
  37. div.clr-col-sm-8 {
  38. label {
  39. font-size: 0.85em;
  40. }
  41. textarea {
  42. margin-bottom: 5px;
  43. }
  44. }
  45. .red input {
  46. color: rgb(202, 28, 28) !important;
  47. }
  48. .bgPaleBlue input {
  49. background-color: rgb(230, 243, 243) !important;
  50. }
  51. #yoyo {
  52. input {
  53. border-color: purple;
  54. border-width: 2px;
  55. width: 50%;
  56. }
  57. }
  58. // ---------------------------------------------------------------------------------------------------------------------
  59. // Input styles - Clarity
  60. input, textarea, select {
  61. &.form-control:focus {
  62. box-shadow: none;
  63. }
  64. &.form-control-sm {
  65. font-size:1em;
  66. }
  67. }
  68. .select:after {
  69. display: none;
  70. }
  71. .clr-input, .clr-select, .date-input {
  72. color: $col-charcoal;
  73. border-bottom:1px lighten($col-charcoal, 20%) solid;
  74. width: 100%;
  75. line-height: 100%;
  76. padding-left: 0;
  77. padding-right: 0;
  78. &:focus {
  79. color: $col-charcoal;
  80. background-size: 100% 100%;
  81. }
  82. }
  83. .dropdownmodifiedinput
  84. {
  85. .clr-input {
  86. margin-left: 5px;
  87. width: auto;
  88. overflow: hidden; // Trigger a block formatting context (BFC) so input takes up remaining width
  89. }
  90. .dropdown-toggle::after {
  91. display: none;
  92. }
  93. }
  94. // ---------------------------------------------------------------------------------------------------------------------
  95. // FormGroup Heading Styles
  96. .h-dyna-2 {
  97. font-size: 1.5em;
  98. }
  99. .h-dyna-3 {
  100. font-size: 1.25em;
  101. }
  102. .h-dyna-4 {
  103. font-size: 1.1em;
  104. }
  105. // ---------------------------------------------------------------------------------------------------------------------
  106. // Button Groups
  107. .buttongroup a {
  108. margin-right: 4px;
  109. }
  110. // CHeckbutton group
  111. .aba-checkbutton-group {
  112. .btn { margin-left: 0; margin-right: 4px; }
  113. }
  114. // ---------------------------------------------------------------------------------------------------------------------
  115. // Repeating Comtainers (series of buttons alowwing user to focus a repeating container member)
  116. .dyna-repeating-container-selector {
  117. margin-bottom: 5px;
  118. a.btn {
  119. margin-right: 4px;
  120. }
  121. .btn-primary {
  122. color: white !important;
  123. }
  124. }
  125. .dyna-rc-container.dyna-rc-display-all, .dyna-rc-control.dyna-rc-display-all {
  126. margin-bottom: 7px;
  127. border-bottom: 4px #CCC solid;
  128. &:first-child {
  129. padding-top: 7px;
  130. border-top: 4px #CCC solid;
  131. }
  132. }
  133. .dyna-hidden {
  134. display: none;
  135. }
  136. // ---------------------------------------------------------------------------------------------------------------------
  137. // Errors
  138. .dyna-error label.col-sm-4 {
  139. span {
  140. display: inline-block;
  141. margin-left: 0.5em;
  142. color: red;
  143. }
  144. }
  145. // ---------------------------------------------------------------------------------------------------------------------
  146. // Debugging
  147. .__debug {
  148. margin: 2em 0;
  149. }