styles.scss 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  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. $col-danger: red;
  9. // --------------------------------------------------------------------------------------------------------------------
  10. // Clarity Dependency SCSS - No loner needed as of Clarity 2?
  11. // @import "../node_modules/@clr/ui/src/utils/dependencies.clarity"; // Includes light theme
  12. // PUT (or import) CLARITY VARIABLE OVERRIDES HERE
  13. $clr-forms-select-hover-background: $col-blue-lightest;
  14. // Clarity Component SCSS
  15. @import "../node_modules/@clr/ui/src/utils/components.clarity";
  16. .central-col {
  17. max-width: 80%;
  18. margin: 0 auto 2rem;
  19. }
  20. h1 {
  21. color: $col-blue-primary;
  22. border-bottom: 4px $col-blue-primary solid;
  23. margin-bottom: 1em;
  24. }
  25. .form-group {
  26. margin-bottom: 4px;
  27. }
  28. div.clr-col-sm-8 {
  29. margin-bottom: 2px;
  30. }
  31. label.clr-col-sm-4 {
  32. background-color: $col-blue-lightest;
  33. border-left: 15px white solid;
  34. padding-top: 4px;
  35. padding-bottom: 4px;
  36. margin-bottom: 2px;
  37. }
  38. div.clr-col-sm-8 {
  39. label {
  40. font-size: 0.85em;
  41. }
  42. textarea {
  43. margin-bottom: 5px;
  44. }
  45. }
  46. .red input {
  47. color: red !important;
  48. }
  49. .bgPaleBlue input {
  50. background-color: rgb(230, 243, 243) !important;
  51. }
  52. #yoyo {
  53. input {
  54. border-color: purple;
  55. border-width: 2px;
  56. padding-left: 10px;
  57. padding-right: 10px;
  58. }
  59. }
  60. .multicolor {
  61. input, select, textarea {
  62. border-width: 1px;
  63. border-style: solid;
  64. border-top-color: green;
  65. border-left-color: blueviolet;
  66. border-right-color: teal;
  67. border-bottom-width: 2px;
  68. border-bottom-color: magenta;
  69. width: 200px;
  70. padding-left: 10px;
  71. }
  72. }
  73. .bordered {
  74. border-width: 5px;
  75. border-style: solid;
  76. border-top-color: green;
  77. border-left-color: blueviolet;
  78. border-right-color: teal;
  79. border-bottom-color: magenta;
  80. padding: 2em;
  81. }
  82. // ---------------------------------------------------------------------------------------------------------------------
  83. // FormGroup Heading Styles
  84. .h-dyna-2, .h-dyna-3, .h-dyna-d {
  85. color: $col-blue-primary;
  86. border-bottom: 1px $col-blue-primary dotted;
  87. }
  88. .h-dyna-2 {
  89. font-size: 1.5em;
  90. }
  91. .h-dyna-3 {
  92. font-size: 1.25em;
  93. }
  94. .h-dyna-4 {
  95. font-size: 1.1em;
  96. }
  97. // ---------------------------------------------------------------------------------------------------------------------
  98. // Input styles - Clarity
  99. input, textarea, select {
  100. &.form-control:focus {
  101. box-shadow: none;
  102. }
  103. &.form-control-sm {
  104. font-size:1em;
  105. }
  106. }
  107. // These styles *might* not be necessary in apps that use dynaform
  108. .clr-radio-container {
  109. margin-top: 1rem;
  110. > label {
  111. font-weight: 600;
  112. }
  113. &.clr-control-inline > label {
  114. margin-right: 0.5rem;
  115. }
  116. }
  117. .select:after {
  118. display: none;
  119. }
  120. .clr-input, .clr-select, .date-input {
  121. color: $col-charcoal;
  122. border-bottom:1px lighten($col-charcoal, 20%) solid;
  123. width: 100%;
  124. line-height: 100%;
  125. padding-left: 0;
  126. padding-right: 0;
  127. &:focus {
  128. color: $col-charcoal;
  129. background-size: 100% 100%;
  130. }
  131. }
  132. .clr-radio-wrapper ~ .clr-subtext {
  133. display: inline;
  134. }
  135. // ---------------------------------------------------------------------------------------------------------------------
  136. //Custom Controls
  137. .dropdownmodifiedinput {
  138. label {
  139. display: block;
  140. font-weight: 600;
  141. }
  142. .clr-input {
  143. margin-left: 5px;
  144. width: auto;
  145. overflow: hidden; // Trigger a block formatting context (BFC) so input takes up remaining width
  146. }
  147. .dropdown-toggle::after {
  148. display: none;
  149. }
  150. }
  151. .row-buttongroup, .row-checkbutton, .row-checkbuttongroup, .row-datepicker, .row-dropdownmodifiedinput {
  152. margin-top: 1rem;
  153. }
  154. // ---------------------------------------------------------------------------------------------------------------------
  155. // Button Groups
  156. .buttongroup a {
  157. margin-right: 4px;
  158. }
  159. // Checkbutton group
  160. .aba-checkbutton-group {
  161. .btn { margin-left: 0; margin-right: 4px; }
  162. }
  163. // ---------------------------------------------------------------------------------------------------------------------
  164. // Repeating Containers (series of buttons alowwing user to focus a repeating container member)
  165. // dyna-rc = Dynaform Repeating Container
  166. .dyna-rc-selector {
  167. margin-bottom: 5px;
  168. .dyna-rc-focus-block {
  169. background-color: $col-blue-lightest;
  170. }
  171. .btn {
  172. margin-right: 4px;
  173. }
  174. }
  175. .dyna-rc-member-container.dyna-rc-display-all, .dyna-rc-control.dyna-rc-display-all {
  176. // border-bottom: 4px #CCC solid;
  177. padding-bottom: 1rem;
  178. }
  179. // ---------------------------------------------------------------------------------------------------------------------
  180. // Repeating Field and Container Buttons
  181. .dyna-rep-add-container {
  182. @include clearfix;
  183. }
  184. .dyna-rep-btn-add {
  185. margin-left: 0;
  186. }
  187. .dyna-rep-btn-delete {
  188. float: right;
  189. margin-right: 0;
  190. padding: 0;
  191. color: $col-charcoal;
  192. cursor: pointer;
  193. .dyna-rf-field & {
  194. background-color: transparent;
  195. border: 0;
  196. transform: translateY(16px);
  197. &:disabled {
  198. color: #AAA !important;
  199. cursor: not-allowed;
  200. }
  201. &:hover {
  202. color: $col-danger;
  203. }
  204. }
  205. .dyna-rc-member-container & {
  206. &:hover {
  207. color: $col-danger;
  208. }
  209. &:disabled {
  210. cursor: not-allowed;
  211. }
  212. }
  213. }
  214. // ---------------------------------------------------------------------------------------------------------------------
  215. .dyna-hidden {
  216. display: none;
  217. }
  218. div:not(.row-checkbox) + div.row-checkbox {
  219. margin-top: 8px;
  220. }
  221. // ---------------------------------------------------------------------------------------------------------------------
  222. // Errors
  223. .dyna-error label.col-sm-4 {
  224. span {
  225. display: inline-block;
  226. margin-left: 0.5em;
  227. color: firebrick;
  228. }
  229. }
  230. .label-error {
  231. color: firebrick;
  232. }
  233. clr-control-error {
  234. color: firebrick !important;
  235. }
  236. // ---------------------------------------------------------------------------------------------------------------------
  237. // Debugging
  238. .__debug {
  239. margin: 2em 0;
  240. }