Skip to content
Snippets Groups Projects
admin.css 7.42 KiB
Newer Older
Kyle Doherty's avatar
Kyle Doherty committed
:root {
    --admin-nav-bg-color: #6F7A8B;
    --admin-nav-item-text-color: rgba(255, 255, 255, 0.63);
    --admin-nav-item-text-active-color: #fff;
Kyle Doherty's avatar
Kyle Doherty committed
    --page-header-padding: 2.375rem;
Kyle Doherty's avatar
Kyle Doherty committed
}

.AdminNav {
Kyle Doherty's avatar
Kyle Doherty committed
    padding-top: 1.825em;
    padding-bottom: 1.825em;
Kyle Doherty's avatar
Kyle Doherty committed
    background: var(--admin-nav-bg-color);
    color: #fff;
Kyle Doherty's avatar
Kyle Doherty committed
    font-size: 0.85rem;
Cam Saul's avatar
Cam Saul committed
}
Kyle Doherty's avatar
Kyle Doherty committed

Kyle Doherty's avatar
Kyle Doherty committed
.AdminGear {
    margin-top: 0.25em;
    margin-right: 0.5em;
}

Kyle Doherty's avatar
Kyle Doherty committed
.AdminNav .NavItem {
Kyle Doherty's avatar
Kyle Doherty committed
    color: var(--admin-nav-item-text-color);
}

.AdminNav .NavItem:hover,
.AdminNav .NavItem.is--selected {
    color: var(--admin-nav-item-text-active-color);
}

/* TODO: this feels itchy. should refactor .NavItem.is--selected to be less cascadey */
.AdminNav .NavItem:hover:after,
.AdminNav .NavItem.is--selected:after {
    display: none;
}


.AdminNav .NavDropdown.open .NavDropdown-button,
.AdminNav .NavDropdown .NavDropdown-content-layer {
    background-color: #8993A1;
}

.AdminNav .Dropdown-item:hover {
    background-color: #6F7A8B;
}

Kyle Doherty's avatar
Kyle Doherty committed
/* utility to get a simple common hover state for admin items */
Kyle Doherty's avatar
Kyle Doherty committed
.HoverItem:hover,
Kyle Doherty's avatar
Kyle Doherty committed
.AdminHoverItem:hover {
    background-color: #F3F8FD;
    transition: background .2s linear;
}

Kyle Doherty's avatar
Kyle Doherty committed
.AdminNav .Dropdown-chevron {
    color: #fff;
}

.Actions {
    background-color: rgba(243,243,243,0.46);
    border: 1px solid #E0E0E0;
Kyle Doherty's avatar
Kyle Doherty committed
    padding: 2em;
Kyle Doherty's avatar
Kyle Doherty committed
.Actions-group {
    margin-bottom: 2em;
Kyle Doherty's avatar
Kyle Doherty committed
.Actions-group:last-child {
    margin-bottom: 0;
}

.Actions-group.Actions--dangerZone {
    color: var(--error-color);
}

Kyle Doherty's avatar
Kyle Doherty committed

.Actions-groupLabel {
Kyle Doherty's avatar
Kyle Doherty committed
    font-size: 0.85em;
    margin-bottom: 1em;
}
Kyle Doherty's avatar
Kyle Doherty committed
.ContentTable {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    text-align: left;
}

.ContentTable thead {
    border-bottom: 1px solid #D8D8D8;
}

.AdminBadge {
    background-color: #A989C5;
    border-radius: 4px;
    color: #fff;
    padding: 0.25em;
}
Kyle Doherty's avatar
Kyle Doherty committed
.PageHeader {
    padding-top: var(--page-header-padding);
    padding-bottom: var(--page-header-padding);
}
Kyle Doherty's avatar
Kyle Doherty committed

Kyle Doherty's avatar
Kyle Doherty committed
.PageTitle {
    margin: 0;
}
Kyle Doherty's avatar
Kyle Doherty committed

.Table-actions {
    text-align: right;
}

.ContentTable .Table-actions {
    opacity: 0;
}

.ContentTable td,
.ContentTable th {
    padding: 1em;
}

Kyle Doherty's avatar
Kyle Doherty committed
/* TODO: remove this and apply AdminHoverItem to content rows */
Kyle Doherty's avatar
Kyle Doherty committed
.ContentTable tbody tr:hover {
Kyle Doherty's avatar
Kyle Doherty committed
    background-color: rgba(74, 144, 226, 0.04);
}

.ContentTable tr:hover .Table-actions {
    opacity: 1;
Kyle Doherty's avatar
Kyle Doherty committed
    transition: opacity .2s linear;
Kyle Doherty's avatar
Kyle Doherty committed
}

Kyle Doherty's avatar
Kyle Doherty committed
/* TODO: this is for the ace editor and should be handled without an ID */
#id_sql {
    height: 200px;
.AdminList {
    background-color: #F9FBFC;
    border: var(--border-size) var(--border-style) var(--border-color);
    border-radius: var(--default-border-radius);
    width: 266px;
    box-shadow: inset -1px -1px 3px rgba(0,0,0,0.05);
    padding-bottom: 0.75em;
}

.AdminList-search {
    position: relative;
}

.AdminList-search .Icon {
    position: absolute;
    margin-top: auto;
    margin-bottom: auto;
    top: 0;
    bottom: 0;
    margin: auto;
    margin-left: 1em;
    color: #C0C0C0;
}

.AdminList-search .AdminInput {
    padding: 0.5em;
    padding-left: 2em;
    font-size: 18px;
    width: 100%;
    border-top-left-radius: var(--default-border-radius);
    border-top-right-radius: var(--default-border-radius);
    border-bottom-color: var(--border-color);
}

.AdminList-item {
    padding: 0.75em 1em 0.75em 1em;
    border: var(--border-size) var(--border-style) transparent;
    border-radius: var(--default-border-radius);
    margin-bottom: 0.25em;
}

.AdminList-item.selected {
    color: var(--brand-color);
}

.AdminList-item.selected,
.AdminList-item:hover {
    background-color: white;
    border-color: var(--border-color);
    margin-left: -0.5em;
    margin-right: -0.5em;
    padding-left: 1.5em;
    padding-right: 1.5em;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.AdminList-section {
    margin-top: 1em;
    padding: 0.5em 1em 0.5em 1em;
    text-transform: uppercase;
    color: color(var(--base-grey) shade(20%));
    font-weight: 700;
    font-size: smaller;
}

.AdminList-item .ProgressBar {
    opacity: 0.2;
}

.AdminList-item.selected .ProgressBar {
    opacity: 1.0;
}

.AdminInput {
    color: var(--default-font-color);
    background-color: #FCFCFC;
    border: 1px solid transparent;
}
.AdminInput:focus {
    border-color: var(--brand-color);
    box-shadow: none;
    outline: 0;
}

    padding: 0.6em;
    border: 1px solid var(--border-color);
    border-radius: var(--default-border-radius);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
.AdminSelectBorderless {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
}

.MetadataTable-title {
    background-color: #FCFCFC;
}

.TableEditor-table-name {
    font-size: 24px;
}

.TableEditor-field-name {
    font-size: 16px;
}

.TableEditor-table-description,
.TableEditor-field-description {
    font-size: 14px;
}

}

.TableEditor-field-visibility .ColumnarSelector-row:hover {
    background-color: var(--brand-color) !important;
.TableEditor-field-type {
}

.TableEditor-field-type .ColumnarSelector-row:hover {
    background-color: var(--brand-color) !important;
    color: white !important;
}

.TableEditor-field-special-type,
.TableEditor-field-target {
}

.TableEditor-field-special-type .ColumnarSelector-row:hover,
.TableEditor-field-target .ColumnarSelector-row:hover {
    background-color: var(--brand-color) !important;
.Toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    border-radius: 99px;
    border: 1px solid #EAEAEA;
    background-color: #F7F7F7;
    transition: all 0.3s;
}

.Toggle.selected {
}

.Toggle:after {
    content: "";
    width: 20px;
    height: 20px;
    border-radius: 99px;
    position: absolute;
    top: 1px;
    left: 1px;
    background-color: #D9D9D9;
    transition: all 0.3s;
}

.Toggle.selected:after {
    content: "";
    width: 20px;
    height: 20px;
    border-radius: 99px;
    position: absolute;
    top: 1px;
    left: 25px;

    background-color: white;
Kyle Doherty's avatar
Kyle Doherty committed
}

.ProgressBar {
    position: relative;
    border: 1px solid #6F7A8B;

    width: 55px;
    height: 10px;
    border-radius: 99px;
}
.ProgressBar--mini {
    width: 17px;
    height: 8px;
    border-radius: 2px;
}
.ProgressBar-progress {
    background-color: #6F7A8B;
    position: absolute;
    height: 100%;
    top: 0px;
    left: 0px;
    border-radius: inherit;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
}
Tom Robinson's avatar
Tom Robinson committed
.SaveStatus {
    line-height: 1;
}

.SaveStatus:last-child {
    border-right: none !important;
}
Tom Robinson's avatar
Tom Robinson committed
.SettingsPassword {

.UserRolePopover .ColumnarSelector-column {
    min-height: 180px;
}

.UserActionsSelect {
    padding-top: 1em;
    min-width: 180px;
}

.AdminTable {
  border-collapse: collapse;
  border-spacing: 0;

  white-space: nowrap;
  text-align: left;
}

.AdminTable th {
  text-transform: uppercase;
  color: color(var(--base-grey) shade(40%));
  padding:  var(--padding-1);
  font-weight: normal;
}

.AdminTable thead {
  border-bottom: var(--border-size) var(--border-style) var(--border-color);
}

.AdminTable tbody tr:first-child td {
  padding-top: var(--margin-1);
}