docbrown/app/assets/stylesheets/admin.scss
Arit Amana 08796b5cee
[Team Email Login] Refactor Authentication Provider Enable/Disable (#11185)
* Starting out

* Building away...

* Hooking buttons up

* Hook Auth Provider buttons to Array Field

* trying to fix NoNameError

* Remains InviteOnlyMode disable and tests

* Smashing remaining tasks

* Last of tasks

* add tests

* Complete specs and tests 😅

* Fix bug

* Additional guard

* pass event to functions

* Position Email Auth first

* Fix bug in Email Auth Modal

* Fix spacing issue

* Update docs for adminModal.js

* Show/hide Enabled Indicator with Enable/Undo buttons

* Complete Auth Providers functionality

* Update app/javascript/admin/controllers/config_controller.js

Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com>

* Update app/javascript/admin/controllers/config_controller.js

Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com>

* Update app/controllers/admin/configs_controller.rb

Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com>

* Update helper names

* better implementation of EnabledIndicator show/hide

* Small copy changes

* Update spec/helpers/authentication_helper_spec.rb

Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com>

* Update app/views/admin/configs/show.html.erb

Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com>

* Update app/helpers/authentication_helper.rb

Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com>

Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com>
2020-11-06 18:19:34 -05:00

158 lines
2.4 KiB
SCSS

@import 'config/import';
@import 'crayons';
@import 'variables';
@import 'scaffolds';
// overriding Bootstrap styles
label {
margin-bottom: 0 !important;
}
.pagination {
justify-content: right;
.page,
.next,
.last,
.first,
.prev {
padding: 8px;
}
}
.bg-featured {
background: #bbffd2;
}
.bg-approved {
background: #92e8ae;
border: 12px solid #ff9900;
}
.bg-highlighted {
background: #2effa8 !important;
border: 20px solid black;
}
.border-highlighted {
border: 20px solid black;
}
.broadcast-wrapper {
display: flex;
position: relative;
z-index: unset;
}
.site-config__required {
background: #dc3545;
border-radius: 19px;
padding: 5px 15px;
color: white;
text-align: right;
margin-left: 10px;
}
.site-config__label {
display: flex;
justify-content: space-between;
}
.profile__group-toggle {
text-decoration: underline;
cursor: pointer;
color: grey;
margin: 1em 0;
text-align: end;
}
#profileFields {
.card-header {
display: flex;
align-items: center;
justify-content: space-between;
}
.card-header__actions {
display: flex;
justify-content: space-between;
}
.card-header__information {
display: flex;
align-items: center;
}
.group__description {
color: $medium-gray;
width: 150px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-left: 16px;
}
.card-header__actions > div {
margin: 0 16px;
cursor: pointer;
}
}
.admin-navigation-links {
width: 240px;
}
.admin-navigation-links .crayons-icon svg {
width: 24px;
height: 24px;
}
.config-authentication__item {
display: flex;
gap: var(--su-2);
padding-top: var(--su-3);
padding-bottom: var(--su-3);
&--container {
width: 100%;
}
&--row {
height: 40px;
}
&--icon {
align-items: center;
color: var(--base-80);
display: flex;
height: 40px;
width: 40px;
}
&--label {
.enabled-indicator-hidden {
display: none;
}
.enabled-indicator-visible {
display: flex;
align-items: center;
}
}
}
.config-authentication-form {
display: flex;
flex-direction: column;
gap: var(--su-4);
padding-top: var(--su-4);
padding-bottom: var(--su-4);
}
.admin-config-checkmark {
width: var(--su-4);
height: var(--su-4);
background-color: var(--accent-success);
border-radius: 100%;
color: var(--base-inverted);
}