grafana/public/sass/components/_dashboard_settings.scss

105 lines
1.7 KiB
SCSS
Raw Normal View History

2017-12-02 00:05:58 -06:00
.dashboard-settings {
position: fixed;
2017-12-08 11:15:24 -06:00
height: 100%;
width: 100%;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: $zindex-sidemenu;
background: $dashboard-bg;
display: flex;
flex-direction: column;
2017-12-02 00:05:58 -06:00
}
Dashboard: Migrating dashboard settings to react (#27561) * Dashboard: Started migrating dashboard settings * Restore general settings from angular * Use react permissions component * feat(dashboard): add react LinksSettings wrapper for dash-links-editor * feat(dashboard): add react VersionsSettings wrapper for gf-dashboard-history * refactor(dashboard): replace DashboardPermissions connectWithStore with connect * chore(dashboard): folderInfo as undefined * feat(dashboard): initial commit of dashboard settings json editor * feat(dashboard): introduce save json functionality * chore(dashboard): delete obsolete imports * feat(dashboard): add save and save as buttons to settings nav * feat(dashboard): add react wrapper for annotations settings * chore(dashboard): put back canDelete for general settings delete button * Make editable * Remove makeEditable from SettingsCtrl * feat(dashboard): show json editor save button if canSave * refactor(dashboard): move hasUnsavedFolderChange to dashboard.meta * feat(dashboard): render hasUnsavedFolderChange view in permissions settings * feat(dashboard): reset hasUnsavedFolderChange on settingg save success * feat(dashboard): refresh route on sucessful settings save * test(dashboard): update snapshots * refactor(dashboard): automatically infer connected props for dashboard permissions * refactor(dashboard): give dashboard versions checkboxes some padding * Update public/app/types/folders.ts Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com> Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com> Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
2020-12-17 08:50:11 -06:00
.dashboard-settings__body {
min-height: 100%;
width: 100%;
display: flex;
flex-direction: row;
background: $panel-bg;
2017-12-08 11:15:24 -06:00
}
.dashboard-settings__aside {
display: flex;
flex-direction: column;
margin-top: $spacer;
2017-12-08 11:15:24 -06:00
}
.dashboard-settings__aside-header {
color: $text-muted;
font-size: $font-size-h3;
padding-right: 60px;
white-space: nowrap;
2019-03-12 02:10:31 -05:00
margin-bottom: $space-md;
2017-12-10 05:41:11 -06:00
i {
font-size: 25px;
position: relative;
top: 1px;
padding-right: 5px;
}
2017-12-08 11:15:24 -06:00
}
.dashboard-settings__header {
font-size: $font-size-h3;
margin-bottom: $space-md;
2017-12-08 11:15:24 -06:00
}
2018-05-08 04:24:20 -05:00
.dashboard-settings__subheader {
color: $text-muted;
font-style: italic;
}
2017-12-08 11:15:24 -06:00
.dashboard-settings__nav-item {
padding: 8px 40px 8px 8px;
color: $text-color-weak;
2017-12-10 05:21:04 -06:00
font-size: $font-size-md;
line-height: 20px;
position: relative;
2017-12-08 11:15:24 -06:00
@include left-brand-border;
&.active {
color: $text-color;
font-weight: $font-weight-semi-bold;
&::before {
content: '';
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 4px;
border-radius: 4px;
background: $brand-gradient-vertical;
}
2017-12-02 00:05:58 -06:00
}
2017-12-10 05:21:04 -06:00
.gicon {
margin-bottom: 2px;
margin-right: 4px;
}
.fa {
font-size: 17px;
width: 16px;
margin-right: 4px;
2017-12-10 05:21:04 -06:00
}
2017-12-02 00:05:58 -06:00
}
2017-12-12 04:49:01 -06:00
.dashboard-settings__aside-actions {
display: flex;
flex-direction: column;
height: 100%;
flex-grow: 1;
margin: 40px $space-xl 0 0;
2017-12-12 04:49:01 -06:00
button {
2019-03-12 02:10:31 -05:00
margin-bottom: $space-sm;
2017-12-12 04:49:01 -06:00
}
}
2018-04-11 15:59:29 -05:00
.dashboard-settings__json-save-button {
2019-03-12 02:10:31 -05:00
margin-top: $space-md;
2018-04-11 15:59:29 -05:00
}