X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fsass%2Fprimeng-custom.scss;h=b3aac9d16a817838a529ce0ed5fcf7a2d21c7931;hb=f2fab901df31a0e7081f4bb225f28e98798950b0;hp=bbc136c4061082c0df71a220d3d018e38054a576;hpb=b9fcfb1d2ae1607fc50ead345b939036f1bcaab0;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/sass/primeng-custom.scss b/client/src/sass/primeng-custom.scss index bbc136c40..b3aac9d16 100644 --- a/client/src/sass/primeng-custom.scss +++ b/client/src/sass/primeng-custom.scss @@ -2,7 +2,7 @@ @import '_mixins'; @import '~primeng/resources/primeng.css'; -@import '~primeng/resources/themes/bootstrap/theme.css'; +@import '~primeng/resources/themes/nova-light/theme.css'; @mixin glyphicon-light { font-family: 'Glyphicons Halflings'; @@ -12,10 +12,29 @@ // data table customizations p-table { - font-size: 15px !important; + .ui-table-caption { + border: none !important; + background-color: var(--mainBackgroundColor) !important; + + .caption { + height: 40px; + display: flex; + align-items: center; + } + } + + th { + background-color: var(--mainBackgroundColor) !important; + outline: 0; + } + + td, th { + font-family: $main-fonts; + font-size: 15px !important; + color: var(--mainForegroundColor) !important; + } td { - border: 1px solid #E5E5E5 !important; padding-left: 15px !important; &:not(.action-cell) { @@ -26,8 +45,17 @@ p-table { } tr { + outline: 0; background-color: var(--mainBackgroundColor) !important; height: 46px; + + &.ui-state-highlight { + background-color: var(--submenuColor) !important; + + td, td > a { + color: var(--mainForegroundColor) !important; + } + } } .ui-table-tbody { @@ -42,6 +70,10 @@ p-table { } } + td { + border: none !important; + } + &:first-child td { border-top: none !important; } @@ -79,21 +111,25 @@ p-table { } &.ui-state-highlight { - background-color:var(--submenuColor) !important; + background-color: var(--submenuColor) !important; .pi { @extend .glyphicon; - color: #000; - font-size: 11px; - top: 0; + color: #000 !important; + font-size: 11px !important; + top: 0 !important; &.pi-sort-up { @extend .glyphicon-triangle-top; + + color: var(--mainForegroundColor) !important; } &.pi-sort-down { @extend .glyphicon-triangle-bottom; + + color: var(--mainForegroundColor) !important; } } } @@ -113,7 +149,8 @@ p-table { .ui-paginator-bottom { background-color: var(--mainBackgroundColor) !important; position: relative; - border: 1px solid !important; + border: none; + border-top: 1px solid !important; border-color: var(--submenuColor) !important; height: 40px; display: flex; @@ -162,11 +199,12 @@ p-table { a { color: #000 !important; font-weight: $font-semibold !important; - margin: 0 10px !important; + margin: 0 5px !important; outline: 0 !important; border-radius: 3px !important; padding: 5px 2px !important; height: auto !important; + line-height: initial !important; &.ui-state-active { &, &:hover, &:active, &:focus { @@ -195,11 +233,23 @@ p-calendar .ui-datepicker { .ui-datepicker-next { @extend .glyphicon-chevron-right; @include glyphicon-light; + + text-align: right; + + .pi.pi-chevron-right { + display: none !important; + } } .ui-datepicker-prev { @extend .glyphicon-chevron-left; @include glyphicon-light; + + text-align: left; + + .pi.pi-chevron-left { + display: none !important; + } } } @@ -215,4 +265,107 @@ p-calendar .ui-datepicker { @include glyphicon-light; } } -} \ No newline at end of file +} + +.ui-chkbox { + + &, .ui-chkbox-box { + width: 18px !important; + height: 18px !important; + } + + .ui-chkbox-box { + &.ui-state-active { + border-color: var(--mainColor) !important; + background-color: var(--mainColor) !important; + } + + .ui-chkbox-icon { + position: relative; + overflow: visible !important; + + &:after { + content: ''; + position: absolute; + top: 1px; + left: 6px; + width: 5px; + height: 12px; + opacity: 0; + transform: rotate(45deg) scale(0); + border-right: 2px solid var(--mainBackgroundColor); + border-bottom: 2px solid var(--mainBackgroundColor); + } + + &.pi-check:after { + opacity: 1; + transform: rotate(45deg) scale(1); + } + } + } +} + +p-inputswitch { + .ui-inputswitch-checked .ui-inputswitch-slider { + background-color: var(--mainColor) !important; + } +} + +p-toast { + .ui-toast { + // Modal is 10005 + z-index: 10010 !important; + } + + .ui-toast-message { + font-family: $main-fonts; + + &.ui-toast-message-success { + color: #fff !important; + background-color: #8BC34A !important; + } + + &.ui-toast-message-error { + color: #fff !important; + background-color: #F44336 !important; + } + + &.ui-toast-message-info { + color: #fff !important; + background-color: #03A9F4 !important; + } + + &.ui-toast-message-info { + color: #fff !important; + background-color: #03A9F4 !important; + } + + .notification-block { + display: flex; + align-items: center; + padding: 5px; + + .message { + flex-grow: 1; + + h3 { + font-size: 21px; + } + + p { + font-size: 15px; + margin-bottom: 0; + } + } + + .glyphicon { + font-size: 32px; + margin-right: 5px; + } + } + } +} + +.ui-widget { + font-family: $main-fonts !important; +}