account-settings.less 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. .account-settings {
  2. .alert {
  3. margin-bottom: 0;
  4. }
  5. h3 {
  6. margin-top: 0;
  7. }
  8. }
  9. #delete-account-modal {
  10. .alert {
  11. margin-top: 25px;
  12. margin-bottom: 4px;
  13. }
  14. .confirmation-checkbox-wrapper {
  15. padding-top: 8px;
  16. input {
  17. margin-right: 6px;
  18. }
  19. }
  20. }
  21. .affiliations-table {
  22. table-layout: fixed;
  23. }
  24. .affiliations-table-cell {
  25. padding: 0.5rem;
  26. overflow-wrap: break-word;
  27. }
  28. .affiliations-table-cell-tabbed {
  29. margin: @margin-sm 0 0 @margin-md;
  30. padding-left: @margin-sm;
  31. border-left: 2px solid @table-border-color; // don't migrate this line of style
  32. }
  33. .affiliations-table-row-highlighted {
  34. background-color: tint(@content-alt-bg-color, 6%);
  35. }
  36. .affiliations-table-email {
  37. width: 40%;
  38. }
  39. .affiliations-table-institution {
  40. width: 40%;
  41. }
  42. .affiliations-table-inline-actions {
  43. padding: 0 !important;
  44. text-align: right;
  45. word-wrap: break-word;
  46. button {
  47. margin: @table-cell-padding 0;
  48. }
  49. }
  50. .affiliations-table-inline-action {
  51. text-transform: capitalize;
  52. }
  53. .affiliations-table-inline-action-disabled-wrapper {
  54. display: inline-block;
  55. }
  56. .affiliations-table-highlighted-row {
  57. background-color: tint(@content-alt-bg-color, 6%);
  58. }
  59. .affiliations-table-error-row {
  60. background-color: @alert-danger-bg;
  61. color: @alert-danger-text;
  62. .btn {
  63. margin-top: @table-cell-padding;
  64. .button-variant(
  65. @btn-danger-color; darken(@btn-danger-bg, 8%) ; @btn-danger-border
  66. );
  67. }
  68. .small {
  69. color: @alert-danger-text;
  70. }
  71. }
  72. .affiliations-table-info-row {
  73. background-color: @alert-info-bg;
  74. color: @alert-info-text;
  75. .small {
  76. color: @alert-info-text;
  77. }
  78. }
  79. .affiliations-table-warning-row {
  80. background-color: @alert-warning-bg;
  81. color: @alert-warning-text;
  82. .small {
  83. color: @alert-warning-text;
  84. }
  85. }
  86. tbody > tr.affiliations-table-saml-row > td:not(.with-border) {
  87. border: 0;
  88. }
  89. tbody > tr.affiliations-table-info-row > td {
  90. border: 0;
  91. }
  92. tbody > tr.affiliations-table-warning-row > td {
  93. border: 0;
  94. }
  95. .affiliations-form-group {
  96. margin-top: @table-cell-padding;
  97. &:first-child {
  98. margin-top: 0;
  99. }
  100. }
  101. .affiliation-change-container,
  102. .affiliation-change-actions {
  103. margin-top: @table-cell-padding;
  104. }
  105. .affiliations-table-label {
  106. padding-top: 4px;
  107. }
  108. .btn-link-accounts {
  109. margin-bottom: (@line-height-computed / 2) - @table-cell-padding;
  110. }
  111. .settings-widget-status-icon,
  112. .dropbox-sync-icon {
  113. position: relative;
  114. font-size: 1.3em;
  115. line-height: 1.3em;
  116. vertical-align: top;
  117. &.status-error,
  118. &.dropbox-sync-icon-error {
  119. color: @alert-danger-bg;
  120. }
  121. &.status-success,
  122. &.dropbox-sync-icon-success {
  123. color: @alert-success-bg;
  124. }
  125. &.status-pending,
  126. &.dropbox-sync-icon-updating {
  127. color: @alert-info-bg;
  128. &::after {
  129. content: '\f021';
  130. position: absolute;
  131. top: 0;
  132. left: 50%;
  133. margin-left: -20%;
  134. font-size: 60%;
  135. color: #fff;
  136. animation: fa-spin 2s infinite linear;
  137. }
  138. }
  139. }
  140. .settings-widgets-container {
  141. border: 1px solid @gray-lighter;
  142. hr {
  143. margin: 0 10px;
  144. }
  145. }
  146. .settings-widget-container {
  147. display: grid;
  148. grid-template-columns: 40px 1fr auto;
  149. gap: 20px;
  150. align-items: center;
  151. padding: 10px;
  152. > div {
  153. display: flex;
  154. flex-direction: column;
  155. padding-right: 20px;
  156. &:last-child {
  157. padding-right: 0px;
  158. }
  159. }
  160. img {
  161. width: 40px;
  162. height: 40px;
  163. }
  164. .description-container {
  165. flex-grow: 1;
  166. }
  167. .title-row {
  168. display: flex;
  169. align-items: center;
  170. margin-bottom: 10px;
  171. > h4 {
  172. margin: 0;
  173. margin-right: 10px;
  174. }
  175. }
  176. p {
  177. margin-bottom: 10px;
  178. &:last-child {
  179. margin-bottom: 0;
  180. }
  181. }
  182. }
  183. @media (max-width: @screen-xs-max) {
  184. .settings-widget-container {
  185. grid-template-columns: 1fr;
  186. .title-row {
  187. display: unset;
  188. }
  189. }
  190. }
  191. // Should not be migrated to BS5
  192. .settings-reconfirm-info {
  193. display: flex;
  194. justify-content: space-between;
  195. margin: 0px auto @margin-sm auto !important;
  196. padding: @padding-md;
  197. &:not(.alert-info) {
  198. background-color: @ol-blue-gray-0;
  199. .fa-warning {
  200. color: @brand-warning;
  201. }
  202. }
  203. > *:not(:last-child) {
  204. margin-right: @margin-md;
  205. }
  206. }
  207. // Should not be migrated to BS5
  208. .setting-reconfirm-info-right {
  209. white-space: nowrap;
  210. }
  211. // Prevents icon from large account linking sections, such as the git bridge,
  212. // from rendering in the center of the widget, anchoring it to the top
  213. .linking-icon-fixed-position {
  214. align-self: start;
  215. padding-top: 10px;
  216. }
  217. // overrides the default `Col` padding, as the inner `affiliations-table-cell` has its own padding, and
  218. // the content length of the git-bridge token table is pretty much fixed (tokens and dates)
  219. .linking-git-bridge-table-cell {
  220. padding-right: 0;
  221. }
  222. .linking-git-bridge-revoke-button {
  223. padding: 2px 4px;
  224. }
  225. .security-row {
  226. .line-header > b {
  227. color: @ol-blue-gray-6;
  228. }
  229. line-height: 24px;
  230. color: @ol-blue-gray-4;
  231. display: flex;
  232. flex-direction: row;
  233. padding: 6px 0;
  234. .icon {
  235. color: @ol-blue-gray-6;
  236. display: flex;
  237. flex: 1 1 7%;
  238. padding: 0 16px;
  239. margin-top: 16px;
  240. }
  241. .text {
  242. flex: 1 1 93%;
  243. display: flex;
  244. flex-direction: column;
  245. margin-right: 16px;
  246. }
  247. .button-column {
  248. display: flex;
  249. align-items: center;
  250. }
  251. .status-label {
  252. font-size: @font-size-small;
  253. border-radius: 4px;
  254. padding: 2px 4px;
  255. margin-top: 4px;
  256. margin-left: 8px;
  257. flex-shrink: 0;
  258. &.status-label-configured {
  259. background-color: @ol-green;
  260. color: @neutral-10;
  261. }
  262. &.status-label-ready {
  263. background-color: @neutral-20;
  264. color: @neutral-90;
  265. }
  266. }
  267. }