1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/frontend/src/themes/app.css

168 lines
2.9 KiB
CSS
Raw Normal View History

* {
box-sizing: border-box;
}
html {
height: 100%;
overflow: auto;
overflow-y: scroll;
}
body {
2023-03-22 13:15:53 +01:00
min-height: 100%;
font-family: 'Sen', sans-serif;
2023-01-12 10:22:37 +01:00
font-size: 16px;
font-variant-ligatures: none;
2023-03-22 13:15:53 +01:00
padding: 0;
display: flex;
flex-direction: column;
}
button {
font-family: 'Sen', sans-serif;
2023-01-12 10:22:37 +01:00
font-variant-ligatures: none;
}
.MuiAccordion-root.Mui-expanded {
margin: 0;
}
.MuiButton-root {
border-radius: 3px;
text-transform: none;
font-size: 16px;
}
.skeleton {
position: relative;
overflow: hidden;
z-index: 9999;
box-shadow: none;
fill: none;
Feature list table (#908) * experiment with generic table * feat: example implementation of sortable table interfaces * add enhanced table header Co-authored-by: Nuno Góis <github@nunogois.com> * table cleanup Co-authored-by: Nuno Góis Co-authored-by: Fredrik Strand Oseberg * useSort hook interface surface Co-authored-by: Nuno Góis <github@nunogois.com> * sort handler initial implementation Co-authored-by: Tymoteusz Czech <Tymek@users.noreply.github.com> * new table unified components * feature flags table components Co-authored-by: Nuno Góis <github@nunogois.com> * feat: new table sort hook * feat: table sort * useSearch hook implementation * update new sort hook tests * sortable headers hook * feat: add sort to other table features * move experimental table hooks to a directory * update new table header styles * fix: header, tableActions * add some details like pagination and highlighter so we keep them in mind * feature table cells * update new table sort logic * new pagination * fix formatting and remove unused component * fix: adapt useSearch default search to text instead of regex (PR #924) * fix: update table title based on visible rows * fix: remove test route * refactor: move table experiment files * features table experimentation * feat: enhanced feature flags table * fix: features default sort * feat: enhanced table loading * fix: table theme after mui5 update * features list placeholder * add react-table * update snapshots after theme change * remove unused files * fix: improve features table after review * refactor: rename feature type cell variables Co-authored-by: Fredrik Oseberg <fredrik.no@gmail.com> Co-authored-by: Nuno Góis <github@nunogois.com> Co-authored-by: Tymoteusz Czech <Tymek@users.noreply.github.com>
2022-05-05 15:34:46 +02:00
pointer-events: none;
}
.skeleton::before {
content: '';
position: absolute;
top: 0px;
right: 0;
content-visibility: hidden;
bottom: 0;
z-index: 5000;
left: 0;
}
.skeleton::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
transform: translateX(-100%);
/* background-image: linear-gradient(
90deg,
rgba(255, 255, 255, 0) 0,
rgba(255, 255, 255, 0.2) 100%,
rgba(255, 255, 255, 0.5) 100%,
rgba(255, 255, 255, 0)
); */
animation: shimmer 3s infinite;
content: '';
z-index: 5001;
}
@keyframes shimmer {
100% {
transform: translateX(100%);
}
}
:root {
/* FONT SIZE */
--h1-size: 1.25rem;
--p-size: 1rem;
--caption-size: 0.9rem;
/* PADDING */
--card-padding: 2rem;
--card-padding-x: 2rem;
--card-padding-y: 2rem;
--card-header-padding: 1rem 2rem;
--drawer-padding: 1rem 1.5rem;
--page-padding: 2rem 0;
--list-header-padding: 1rem;
/* MARGIN */
--card-margin-y: 1rem;
--card-margin-x: 1rem;
/* COLORS*/
--success: #3bd86e;
--danger: #d95e5e;
--warning: #d67c3d;
--drawer-link-active: #000;
--drawer-link-active-bg: #f1f1f1;
--drawer-link-inactive: #424242;
--primary: #607d8b;
/* WIDTHS */
--drawer-width: 250px;
--dropdownMenuWidth: 200px;
/* BOX SHADOWS */
--chip-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14),
0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
/* BORDERS */
--default-border: 1px solid #f1f1f1;
}
h1,
h2 {
padding: 0;
margin: 0;
line-height: 24px;
}
p {
margin: 0;
padding: 0;
}
a {
cursor: pointer;
}
a:hover {
text-decoration: none;
}
#app {
2023-03-22 13:15:53 +01:00
flex-grow: 1;
min-height: 100%;
display: flex;
flex-direction: column;
}
.MuiCardHeader-title {
font-size: var(--p-size);
}
feat: add new feature metrics page (#716) * refactor: ensure that [hidden] overrides other display styles * refactor: use numeric font weights * refactor: remove unnecessary Jest mock * refactor: add a fullWidth prop to GeneralSelect * refactor: remove unnecessary label id prop * refactor: the showActive prop is optional * refactor: add hooks for managing query string state * refactor: add a hour/minute timestamp formatter * refactor: add labels to button icons * feat: add new feature metrics page * refactor: remove prev feature metrics page * refactor: use new metric boxes on overview page * refactor: lazy-load the new metrics page * refactor: fix type error when formatting unknown error * refactor: extract interfaces for props * refactor: destructure all props * refactor: expand arg names * refactor: reorg component dirs and files * refactor: improve chart element label * refactor: hide chart dots until hover * refactor: add section titles to environments/applications * refactor: simplify FeatureMetricsHours types * refactor: sort chart tooltip items * refactor: add more chart labels * refactor: always show a dot in single point charts * refactor: improve chart tooltip styles * refactor: adjut metric page spacing * refactor: decrease legend box size * refactor: move date fmt fn inline * refactor: improve chart legend styles * refactor: increase Cypress timeouts * refactor: sort environment and application chips * refactor: format files * refactor: use stable lists of apps and envs * refactor: fix FeatureMetrics dir name * refactor: avoid ScrollToTop on query string change * refactor: use ConditionallyRender instead of inline condition * refactor: use makeStyles instead of styled API
2022-02-21 13:47:54 +01:00
[hidden] {
display: none !important;
}
@media screen and (max-width: 1024px) {
:root {
--drawer-padding: 0.75rem 1.25rem;
}
}
input.hide-clear[type='search']::-webkit-search-decoration,
input.hide-clear[type='search']::-webkit-search-cancel-button,
input.hide-clear[type='search']::-webkit-search-results-button,
input.hide-clear[type='search']::-webkit-search-results-decoration {
display: none;
}