account-settings.less 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  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;
  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: flex;
  148. justify-content: space-between;
  149. align-items: center;
  150. padding: 10px;
  151. > div {
  152. display: flex;
  153. flex-direction: column;
  154. padding-right: 20px;
  155. &:last-child {
  156. padding-right: 0px;
  157. }
  158. }
  159. img {
  160. width: 40px;
  161. height: 40px;
  162. }
  163. .description-container {
  164. flex-grow: 1;
  165. }
  166. .title-row {
  167. display: flex;
  168. align-items: center;
  169. margin-bottom: 10px;
  170. > h4 {
  171. margin: 0;
  172. margin-right: 10px;
  173. }
  174. }
  175. p {
  176. margin-bottom: 10px;
  177. &:last-child {
  178. margin-bottom: 0;
  179. }
  180. }
  181. }
  182. .settings-reconfirm-info {
  183. display: flex;
  184. justify-content: space-between;
  185. margin: 0px auto @margin-sm auto !important;
  186. padding: @padding-md;
  187. &:not(.alert-info) {
  188. background-color: @ol-blue-gray-0;
  189. .fa-warning {
  190. color: @brand-warning;
  191. }
  192. }
  193. > *:not(:last-child) {
  194. margin-right: @margin-md;
  195. }
  196. }
  197. .setting-reconfirm-info-right {
  198. white-space: nowrap;
  199. }
  200. // Prevents icon from large account linking sections, such as the git bridge,
  201. // from rendering in the center of the widget, anchoring it to the top
  202. .linking-icon-fixed-position {
  203. align-self: start;
  204. padding-top: 10px;
  205. }
  206. // overrides the default `Col` padding, as the inner `affiliations-table-cell` has its own padding, and
  207. // the content length of the git-bridge token table is pretty much fixed (tokens and dates)
  208. .linking-git-bridge-table-cell {
  209. padding-right: 0;
  210. }
  211. .linking-git-bridge-revoke-button {
  212. padding: 2px 4px;
  213. }