styles.scss 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  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 - No loner needed as of Clarity 2?
  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 2rem;
  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: red !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. padding-left: 10px;
  56. padding-right: 10px;
  57. }
  58. }
  59. .short-field {
  60. input, select {
  61. border-width: 1px;
  62. border-style: solid;
  63. border-top-color: green;
  64. border-left-color: blueviolet;
  65. border-right-color: teal;
  66. border-bottom-width: 2px;
  67. border-bottom-color: magenta;
  68. width: 60px;
  69. padding-left: 10px;
  70. }
  71. }
  72. // ---------------------------------------------------------------------------------------------------------------------
  73. // FormGroup Heading Styles
  74. .h-dyna-2, .h-dyna-3, .h-dyna-d {
  75. color: $col-blue-primary;
  76. border-bottom: 1px $col-blue-primary dotted;
  77. }
  78. .h-dyna-2 {
  79. font-size: 1.5em;
  80. }
  81. .h-dyna-3 {
  82. font-size: 1.25em;
  83. }
  84. .h-dyna-4 {
  85. font-size: 1.1em;
  86. }
  87. // ---------------------------------------------------------------------------------------------------------------------
  88. // Input styles - Clarity
  89. input, textarea, select {
  90. &.form-control:focus {
  91. box-shadow: none;
  92. }
  93. &.form-control-sm {
  94. font-size:1em;
  95. }
  96. }
  97. // These styles *might* not be necessary in apps that use dynaform
  98. .clr-radio-container {
  99. margin-top: 1rem;
  100. > label {
  101. font-weight: 600;
  102. }
  103. &.clr-control-inline > label {
  104. margin-right: 0.5rem;
  105. }
  106. }
  107. .select:after {
  108. display: none;
  109. }
  110. .clr-input, .clr-select, .date-input {
  111. color: $col-charcoal;
  112. border-bottom:1px lighten($col-charcoal, 20%) solid;
  113. width: 100%;
  114. line-height: 100%;
  115. padding-left: 0;
  116. padding-right: 0;
  117. &:focus {
  118. color: $col-charcoal;
  119. background-size: 100% 100%;
  120. }
  121. }
  122. .clr-radio-wrapper ~ .clr-subtext {
  123. display: inline;
  124. }
  125. // ---------------------------------------------------------------------------------------------------------------------
  126. //Custom Controls
  127. .dropdownmodifiedinput {
  128. label {
  129. display: block;
  130. font-weight: 600;
  131. }
  132. .clr-input {
  133. margin-left: 5px;
  134. width: auto;
  135. overflow: hidden; // Trigger a block formatting context (BFC) so input takes up remaining width
  136. }
  137. .dropdown-toggle::after {
  138. display: none;
  139. }
  140. }
  141. .row-buttongroup, .row-checkbutton, .row-checkbuttongroup, .row-datepicker, .row-dropdownmodifiedinput {
  142. margin-top: 1rem;
  143. }
  144. // ---------------------------------------------------------------------------------------------------------------------
  145. // Button Groups
  146. .buttongroup a {
  147. margin-right: 4px;
  148. }
  149. // Checkbutton group
  150. .aba-checkbutton-group {
  151. .btn { margin-left: 0; margin-right: 4px; }
  152. }
  153. // ---------------------------------------------------------------------------------------------------------------------
  154. // Repeating Fields
  155. // dyna-rf = Dynaform Repeating Field
  156. .dyna-rf-container {
  157. // outline: 1px lime solid;
  158. label {
  159. display: none;
  160. }
  161. > div:first-of-type {
  162. label {
  163. display: block;
  164. }
  165. }
  166. }
  167. // .dyna-rf-field {
  168. // outline: 1px pink solid;
  169. // }
  170. // ---------------------------------------------------------------------------------------------------------------------
  171. // Repeating Containers (series of buttons alowwing user to focus a repeating container member)
  172. // dyna-rc = Dynaform Repeating Container
  173. .dyna-rc-selector {
  174. margin-bottom: 5px;
  175. .dyna-rc-focus-block {
  176. background-color: $col-blue-lightest;
  177. }
  178. .btn {
  179. margin-right: 4px;
  180. }
  181. }
  182. .dyna-rc-container.dyna-rc-display-all, .dyna-rc-control.dyna-rc-display-all {
  183. border-bottom: 4px #CCC solid;
  184. padding-bottom: 1rem;
  185. &:first-child {
  186. border-top: 4px #CCC solid;
  187. > button {
  188. margin-top: 1rem;
  189. }
  190. }
  191. }
  192. // ---------------------------------------------------------------------------------------------------------------------
  193. // Repeating Field and Container Buttons
  194. .dyna-rep-btn-add {
  195. margin-left: 0;
  196. }
  197. .dyna-rep-btn-delete {
  198. float: right;
  199. margin-top: 0;
  200. margin-right: 0;
  201. }
  202. // ---------------------------------------------------------------------------------------------------------------------
  203. .dyna-hidden {
  204. display: none;
  205. }
  206. // ---------------------------------------------------------------------------------------------------------------------
  207. // Errors
  208. .dyna-error label.col-sm-4 {
  209. span {
  210. display: inline-block;
  211. margin-left: 0.5em;
  212. color: firebrick;
  213. }
  214. }
  215. .label-error {
  216. color: firebrick;
  217. }
  218. clr-control-error {
  219. color: firebrick !important;
  220. }
  221. // ---------------------------------------------------------------------------------------------------------------------
  222. // Debugging
  223. .__debug {
  224. margin: 2em 0;
  225. }