_content.scss 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. // ================================================================================================
  2. // File Name: content.scss
  3. // Description: Page content level SCSS for different screen size, layout and device.
  4. // ----------------------------------------------------------------------------------------------
  5. // Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template
  6. // Author: PIXINVENT
  7. // Authuseror URL: http://www.themeforest.net//pixinvent
  8. // ================================================================================================
  9. // Contest margin left for expanded & collapsed stats width & margin left
  10. // ================================================================================================
  11. html {
  12. font-size: $base-font-size;
  13. height: 100%;
  14. letter-spacing: .01rem;
  15. body {
  16. height: 100%;
  17. background-color: $body-bg;
  18. direction: $body-direction;
  19. .content {
  20. padding: 0;
  21. position:relative;
  22. transition: 300ms ease all;
  23. backface-visibility: hidden;
  24. min-height: calc(100% - 4rem);
  25. margin-left: $menu-expanded-width;
  26. &.app-content{
  27. overflow: hidden;
  28. &.show-overlay{
  29. .content-overlay{
  30. z-index: 10;
  31. opacity: 1;
  32. ~.header-navbar-shadow{
  33. background: linear-gradient(180deg,rgba(44,48,60,.9) 44%,rgba(44,48,60,.43) 73%,rgba(44,48,60,0));
  34. }
  35. }
  36. }
  37. .content-overlay{
  38. position: fixed;
  39. opacity: 0;
  40. width: 100%;
  41. height: 100%;
  42. top: 0;
  43. left: 0;
  44. right: 0;
  45. bottom: 0;
  46. background-color: rgba($pure-black,.5);
  47. cursor: pointer;
  48. transition: all .7s;
  49. z-index: -1;
  50. }
  51. .content-area-wrapper{
  52. height: calc(100% - #{$navbar-height});
  53. margin: calc(#{$navbar-height} + 2.7rem) #{$content-padding} 0;
  54. // padding: calc(#{$content-padding} - 0.4rem) #{$content-padding};
  55. display: flex;
  56. position: relative;
  57. .content-wrapper {
  58. margin-top: 0;
  59. height: calc(100vh - 13rem);
  60. height: calc(var(--vh, 1vh) * 100 - 13rem);
  61. }
  62. }
  63. }
  64. .content-wrapper {
  65. padding: calc(#{$content-padding} - 0.4rem) #{$content-padding} 0;
  66. margin-top: $navbar-height + 1;
  67. .content-header-title{
  68. font-weight: 500;
  69. color: $gray-400;
  70. margin-right: $spacer;
  71. }
  72. .content-header-right{
  73. .dropdown-toggle{
  74. &::after{
  75. display: none;
  76. }
  77. i{
  78. margin-right: 0;
  79. }
  80. }
  81. .btn-icon{
  82. padding: .8rem;
  83. i{
  84. font-size: $font-size-base;
  85. }
  86. }
  87. }
  88. }
  89. }
  90. //for navbar hidden
  91. &.navbar-hidden{
  92. .app-content{
  93. .content-wrapper{
  94. padding: 2.2rem;
  95. margin-top: 0;
  96. }
  97. .content-area-wrapper{
  98. padding: 0;
  99. margin-top: 2.5rem;
  100. }
  101. }
  102. }
  103. // for static navbar
  104. &.navbar-static{
  105. .main-menu{
  106. top: 0;
  107. }
  108. .app-content{
  109. .navbar-container{
  110. padding-left: 2.2rem;
  111. padding-right: 1.2rem;
  112. }
  113. .content-wrapper{
  114. padding: 2.2rem;
  115. margin-top: 0;
  116. padding-top: 1rem;
  117. }
  118. .content-area-wrapper{
  119. margin-top: 1rem;
  120. }
  121. }
  122. }
  123. // for sticky navbar
  124. &.navbar-sticky{
  125. .app-content{
  126. .navbar-container{
  127. padding-left: 2.2rem;
  128. padding-right: 1rem;
  129. .search-input{
  130. .search-list{
  131. &.show{
  132. width: 98%;
  133. left: 1%;
  134. }
  135. }
  136. }
  137. }
  138. .content-wrapper{
  139. padding: 2.2rem;
  140. margin-top: 4.65rem;
  141. }
  142. }
  143. }
  144. // navbar search width for sticky and static navbar
  145. &.navbar-static,
  146. &.navbar-sticky{
  147. .navbar-container{
  148. padding-left: 2.2rem;
  149. padding-right: 1rem;
  150. .search-input{
  151. .search-list{
  152. &.show{
  153. width: 98%;
  154. left: 1%;
  155. }
  156. }
  157. }
  158. }
  159. }
  160. // Fixed layout
  161. &.fixed-footer{
  162. .content{
  163. &.app-content{
  164. margin-bottom: 3rem;
  165. }
  166. }
  167. }
  168. // paragraph line-height
  169. p{
  170. line-height: 1.5rem;
  171. }
  172. &.bg-full-screen-image {
  173. background: url(../images/pages/vuexy-login-bg.jpg) no-repeat center center;
  174. background-size: cover;
  175. }
  176. /*
  177. * Blank page
  178. */
  179. &.blank-page {
  180. .content{
  181. margin-left: 0;
  182. // overflow-x hidden, overflow for y in sm screen issue resolved default
  183. &.app-content{
  184. overflow: overlay;
  185. overflow-x: hidden;
  186. // remove white space on top by header-navbar-shadow class
  187. .header-navbar-shadow{
  188. display: none;
  189. }
  190. }
  191. }
  192. // blank page content-wrapper
  193. .content-wrapper {
  194. padding: 0 !important;
  195. margin-top: 0;
  196. // content to be in center horizontally and vertically
  197. .flexbox-container {
  198. display: flex;
  199. align-items: center;
  200. height: 100vh;
  201. height: calc(var(--vh, 1vh) * 100);
  202. justify-content: center;
  203. }
  204. }
  205. }
  206. //Remove left margin for 1 column layout
  207. &[data-col="1-column"] {
  208. .content,.footer {
  209. margin-left: 0px !important;
  210. }
  211. }
  212. }
  213. .pace {
  214. .pace-progress {
  215. background: $primary;
  216. }
  217. }
  218. }
  219. .app-content.center-layout{
  220. overflow: hidden;
  221. }
  222. /*
  223. * Col 3 layout for detached and general type
  224. */
  225. @include media-breakpoint-up(lg) {
  226. body {
  227. // Normal sidebar
  228. .content-right {
  229. width: calc(100vw - (100vw - 100%) - #{$sidebar-width});
  230. float: right;
  231. }
  232. .content-left {
  233. width: calc(100vw - (100vw - 100%) - #{$sidebar-width});
  234. float: left;
  235. }
  236. // Detached sidebar
  237. .content-detached {
  238. width: 100%;
  239. &.content-right {
  240. float: right;
  241. margin-left: -$sidebar-width;
  242. .content-body {
  243. margin-left: calc(#{$sidebar-width} + #{$content-padding});
  244. }
  245. }
  246. &.content-left {
  247. float: left;
  248. margin-right: -$sidebar-width;
  249. .content-body {
  250. margin-right:calc(#{$sidebar-width} + #{$content-padding});
  251. }
  252. }
  253. }
  254. }
  255. .sidebar-right.sidebar-sticky {
  256. float: right !important;
  257. margin-left: -$sidebar-width;
  258. width: $sidebar-width !important;
  259. margin-top: $navbar-height + 1;
  260. }
  261. }
  262. .truncate {
  263. overflow: hidden!important;
  264. text-overflow: ellipsis!important;
  265. white-space: nowrap!important;
  266. }
  267. @include media-breakpoint-down(xs) {
  268. html body .content .content-wrapper{
  269. padding: calc(#{$content-padding} - 0.4rem) calc(#{$content-padding} - 1rem) 0;
  270. }
  271. }
  272. @include media-breakpoint-down(xs) {
  273. body{
  274. &.navbar-static,
  275. &.navbar-sticky{
  276. .app-content{
  277. .header-navbar{
  278. .navbar-container{
  279. padding-left: 1rem;
  280. padding-right: .5rem;
  281. }
  282. }
  283. }
  284. }
  285. }
  286. }
  287. // For Fullscreen IE
  288. @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  289. html.full-screen{
  290. width: 100%;
  291. .content.app-content{
  292. height: 100%;
  293. overflow: scroll;
  294. overflow-x: hidden;
  295. }
  296. }
  297. }