account-settings.less 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  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. .dual-logo {
  165. display: flex;
  166. justify-content: space-evenly;
  167. height: 100%;
  168. }
  169. .description-container {
  170. flex-grow: 1;
  171. }
  172. .title-row {
  173. display: flex;
  174. align-items: center;
  175. margin-bottom: 10px;
  176. > h4 {
  177. margin: 0;
  178. margin-right: 10px;
  179. }
  180. }
  181. p {
  182. margin-bottom: 10px;
  183. &:last-child {
  184. margin-bottom: 0;
  185. }
  186. }
  187. }
  188. @media (max-width: @screen-xs-max) {
  189. .settings-widget-container {
  190. grid-template-columns: 1fr;
  191. .title-row {
  192. display: unset;
  193. }
  194. }
  195. }
  196. // Should not be migrated to BS5
  197. .settings-reconfirm-info {
  198. display: flex;
  199. justify-content: space-between;
  200. margin: 0px auto @margin-sm auto !important;
  201. padding: @padding-md;
  202. &:not(.alert-info) {
  203. background-color: @ol-blue-gray-0;
  204. .fa-warning {
  205. color: @brand-warning;
  206. }
  207. }
  208. > *:not(:last-child) {
  209. margin-right: @margin-md;
  210. }
  211. }
  212. // Should not be migrated to BS5
  213. .setting-reconfirm-info-right {
  214. white-space: nowrap;
  215. }
  216. // Prevents icon from large account linking sections, such as the git bridge,
  217. // from rendering in the center of the widget, anchoring it to the top
  218. .linking-icon-fixed-position {
  219. align-self: start;
  220. padding-top: 10px;
  221. }
  222. // overrides the default `Col` padding, as the inner `affiliations-table-cell` has its own padding, and
  223. // the content length of the git-bridge token table is pretty much fixed (tokens and dates)
  224. .linking-git-bridge-table-cell {
  225. padding-right: 0;
  226. }
  227. .linking-git-bridge-revoke-button {
  228. padding: 2px 4px;
  229. }
  230. .security-row {
  231. .line-header > b {
  232. color: @ol-blue-gray-6;
  233. }
  234. line-height: 24px;
  235. color: @ol-blue-gray-4;
  236. display: flex;
  237. flex-direction: row;
  238. padding: 6px 0;
  239. .icon {
  240. color: @ol-blue-gray-6;
  241. display: flex;
  242. flex: 1 1 7%;
  243. padding: 0 16px;
  244. margin-top: 16px;
  245. }
  246. .text {
  247. flex: 1 1 93%;
  248. display: flex;
  249. flex-direction: column;
  250. margin-right: 16px;
  251. }
  252. .button-column {
  253. display: flex;
  254. align-items: center;
  255. }
  256. .status-label {
  257. font-size: @font-size-small;
  258. border-radius: 4px;
  259. padding: 2px 4px;
  260. margin-top: 4px;
  261. margin-left: 8px;
  262. flex-shrink: 0;
  263. &.status-label-configured {
  264. background-color: @ol-green;
  265. color: @neutral-10;
  266. }
  267. &.status-label-ready {
  268. background-color: @neutral-20;
  269. color: @neutral-90;
  270. }
  271. }
  272. }