123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317 |
- // ================================================================================================
- // File Name: content.scss
- // Description: Page content level SCSS for different screen size, layout and device.
- // ----------------------------------------------------------------------------------------------
- // Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template
- // Author: PIXINVENT
- // Authuseror URL: http://www.themeforest.net//pixinvent
- // ================================================================================================
- // Contest margin left for expanded & collapsed stats width & margin left
- // ================================================================================================
- html {
- font-size: $base-font-size;
- height: 100%;
- letter-spacing: .01rem;
- body {
- height: 100%;
- background-color: $body-bg;
- direction: $body-direction;
- .content {
- padding: 0;
- position:relative;
- transition: 300ms ease all;
- backface-visibility: hidden;
- min-height: calc(100% - 4rem);
- margin-left: $menu-expanded-width;
- &.app-content{
- overflow: hidden;
- &.show-overlay{
- .content-overlay{
- z-index: 10;
- opacity: 1;
- ~.header-navbar-shadow{
- background: linear-gradient(180deg,rgba(44,48,60,.9) 44%,rgba(44,48,60,.43) 73%,rgba(44,48,60,0));
- }
- }
- }
- .content-overlay{
- position: fixed;
- opacity: 0;
- width: 100%;
- height: 100%;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background-color: rgba($pure-black,.5);
- cursor: pointer;
- transition: all .7s;
- z-index: -1;
- }
- .content-area-wrapper{
- height: calc(100% - #{$navbar-height});
- margin: calc(#{$navbar-height} + 2.7rem) #{$content-padding} 0;
- // padding: calc(#{$content-padding} - 0.4rem) #{$content-padding};
- display: flex;
- position: relative;
- .content-wrapper {
- margin-top: 0;
- height: calc(100vh - 13rem);
- height: calc(var(--vh, 1vh) * 100 - 13rem);
- }
- }
- }
- .content-wrapper {
- padding: calc(#{$content-padding} - 0.4rem) #{$content-padding} 0;
- margin-top: $navbar-height + 1;
- .content-header-title{
- font-weight: 500;
- color: $gray-400;
- margin-right: $spacer;
- }
- .content-header-right{
- .dropdown-toggle{
- &::after{
- display: none;
- }
- i{
- margin-right: 0;
- }
- }
- .btn-icon{
- padding: .8rem;
- i{
- font-size: $font-size-base;
- }
- }
- }
- }
- }
- //for navbar hidden
- &.navbar-hidden{
- .app-content{
- .content-wrapper{
- padding: 2.2rem;
- margin-top: 0;
- }
- .content-area-wrapper{
- padding: 0;
- margin-top: 2.5rem;
- }
- }
- }
- // for static navbar
- &.navbar-static{
- .main-menu{
- top: 0;
- }
- .app-content{
- .navbar-container{
- padding-left: 2.2rem;
- padding-right: 1.2rem;
- }
- .content-wrapper{
- padding: 2.2rem;
- margin-top: 0;
- padding-top: 1rem;
- }
- .content-area-wrapper{
- margin-top: 1rem;
- }
- }
- }
- // for sticky navbar
- &.navbar-sticky{
- .app-content{
- .navbar-container{
- padding-left: 2.2rem;
- padding-right: 1rem;
- .search-input{
- .search-list{
- &.show{
- width: 98%;
- left: 1%;
- }
- }
- }
- }
- .content-wrapper{
- padding: 2.2rem;
- margin-top: 4.65rem;
- }
- }
- }
- // navbar search width for sticky and static navbar
- &.navbar-static,
- &.navbar-sticky{
- .navbar-container{
- padding-left: 2.2rem;
- padding-right: 1rem;
- .search-input{
- .search-list{
- &.show{
- width: 98%;
- left: 1%;
- }
- }
- }
- }
- }
- // Fixed layout
- &.fixed-footer{
- .content{
- &.app-content{
- margin-bottom: 3rem;
- }
- }
- }
- // paragraph line-height
- p{
- line-height: 1.5rem;
- }
- &.bg-full-screen-image {
- background: url(../images/pages/vuexy-login-bg.jpg) no-repeat center center;
- background-size: cover;
- }
- /*
- * Blank page
- */
- &.blank-page {
- .content{
- margin-left: 0;
- // overflow-x hidden, overflow for y in sm screen issue resolved default
- &.app-content{
- overflow: overlay;
- overflow-x: hidden;
- // remove white space on top by header-navbar-shadow class
- .header-navbar-shadow{
- display: none;
- }
- }
- }
- // blank page content-wrapper
- .content-wrapper {
- padding: 0 !important;
- margin-top: 0;
- // content to be in center horizontally and vertically
- .flexbox-container {
- display: flex;
- align-items: center;
- height: 100vh;
- height: calc(var(--vh, 1vh) * 100);
- justify-content: center;
- }
- }
- }
- //Remove left margin for 1 column layout
- &[data-col="1-column"] {
- .content,.footer {
- margin-left: 0px !important;
- }
- }
- }
- .pace {
- .pace-progress {
- background: $primary;
- }
- }
- }
- .app-content.center-layout{
- overflow: hidden;
- }
- /*
- * Col 3 layout for detached and general type
- */
- @include media-breakpoint-up(lg) {
- body {
- // Normal sidebar
- .content-right {
- width: calc(100vw - (100vw - 100%) - #{$sidebar-width});
- float: right;
- }
- .content-left {
- width: calc(100vw - (100vw - 100%) - #{$sidebar-width});
- float: left;
- }
- // Detached sidebar
- .content-detached {
- width: 100%;
- &.content-right {
- float: right;
- margin-left: -$sidebar-width;
- .content-body {
- margin-left: calc(#{$sidebar-width} + #{$content-padding});
- }
- }
- &.content-left {
- float: left;
- margin-right: -$sidebar-width;
- .content-body {
- margin-right:calc(#{$sidebar-width} + #{$content-padding});
- }
- }
- }
- }
- .sidebar-right.sidebar-sticky {
- float: right !important;
- margin-left: -$sidebar-width;
- width: $sidebar-width !important;
- margin-top: $navbar-height + 1;
- }
- }
- .truncate {
- overflow: hidden!important;
- text-overflow: ellipsis!important;
- white-space: nowrap!important;
- }
- @include media-breakpoint-down(xs) {
- html body .content .content-wrapper{
- padding: calc(#{$content-padding} - 0.4rem) calc(#{$content-padding} - 1rem) 0;
- }
- }
- @include media-breakpoint-down(xs) {
- body{
- &.navbar-static,
- &.navbar-sticky{
- .app-content{
- .header-navbar{
- .navbar-container{
- padding-left: 1rem;
- padding-right: .5rem;
- }
- }
- }
- }
- }
- }
- // For Fullscreen IE
- @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
- html.full-screen{
- width: 100%;
- .content.app-content{
- height: 100%;
- overflow: scroll;
- overflow-x: hidden;
- }
- }
- }
|