@charset 'utf-8'; // header background-color $header-background-color: #2B7DBC; $navbar-header-bgcolor: #4996D2; $header-topnav-bgcolor: #2B7DBC; $header-admin-bgcolor: #2373B0; $header-background-color-active: #0081CD; // header border color $header-bordered-color: #56B6EB; // header height $header-height: 80px; // aside background color $aside-background-color: #F8F8F8; // asid background color $aside-background-color-active: #F5F6F6; // text primary color $primary-color: #000000; // text default color $default-color: #3D3D3D; // text muted color $muted-color: #585858; // icon primary color $icon-primary-color: rgb(2, 163, 238); /** * reset bootstrap style * start */ body { margin: 0; padding: 0; } .navbar { height: $header-height; margin-bottom: 0; .nav > li > a, .nav > li > a:hover, .nav > li > a:focus { font-size: 14px; color: #FFFFFF; } &-header { background-color: $navbar-header-bgcolor; & > a:hover { color: #FFFFFF !important; } } &-brand { width: 200px; height: $header-height; padding: 35px 0; font-size: 21px; text-align: center; -webkit-transition: width .5s ease; -o-transition: width .5s ease; transition: width .5s ease; } &-default { background-color: $header-background-color; .navbar-nav > li:hover > a, .navbar-nav > .open > a { background-color: $navbar-header-bgcolor !important; } } &-toggle { background-color: $header-background-color; height: $header-height; width: 40px; margin: 0; border: 0 none; border-radius: 0; display: block; padding: 57px 0; display: none; &:hover, &:focus { background-color: transparent !important; } .icon-bar { width: 15px; } .icon-bar + .icon-bar { margin-top: 2px; } } // top menu &-topnav { //border-right: 1px solid $header-bordered-color; background-color: $header-topnav-bgcolor; padding-left: 25px; & > li { //border-left: 1px solid $header-bordered-color; padding: 8px 20px; text-align: center; & > a { border-radius: 5px; line-height: 20px; padding: 3px 10px; min-width: 64px; height: 64px; & > .fa { display: block; font-size: 25px; line-height: 38px; height: 28px; width: 30px; margin: 0 auto; margin-bottom: 12px; } } &.active { & > a { background-color: $navbar-header-bgcolor !important; -webkit-box-shadow: 2px 2px 10px rgba(0, 0, 0, .5); -moz-box-shadow: 2px 2px 10px rgba(0, 0, 0, .5); box-shadow: 2px 2px 10px rgba(0, 0, 0, .5); } } } } .topnav-toggle { & > a { height: $header-height; padding: 54px 18px !important; } .icon-point { background-color: #FFFFFF; border-radius: 50%; width: 4px; height: 4px; display: block; } .icon-point + .icon-point { margin-top: 2px; } } } .dropdown { position: relative; } .admin-identity { position: absolute; right: 30px; top: 10px; display: inline-block; padding: 5px 10px !important; height: 20px; text-align: center; line-height: 20px; font-size: 14px; color: #EEEEEE; } .super-admin { padding: 0 20px !important; right: 0; top: 18px; height: 40px !important; line-height: 40px !important; } .dropdown-menu { min-width: 80px !important; } /** * reset bootstrap style * end */ /** * aside */ .sidebar { position: relative; z-index: 1; float: left; width: 200px; min-height: 400px; background-color: $aside-background-color; -webkit-transition: width .5s ease; -o-transition: width .5s ease; transition: width .5s ease; &:before { position: absolute; top: 0; bottom: 0; z-index: -1; height: 100%; width: 100%; background-color: $aside-background-color; content: ''; } &.fixed { position: fixed; top: 50px; left: 0; z-index: 1029; &:before { right: auto; left: 0; } } &_kind { padding: 8px 12px; background-color: #FFFFFF; & > button { width: 80px; height: 25px; text-align: center; line-height: 25px; background-color: #6FC191; text-decoration: underline; outline: none; border: none; padding: 0; &:last-child { //background-color: #EC774B; background-color: #EF7A01; margin-left: 10px; } & > a { color: #FFFFFF; font-size: 13px; } } } &_back { height: 30px; border-bottom: 1px solid #DEDEDE; position: relative; text-align: center; padding: 6px 0; & > a { width: 18px; height: 18px; display: block; margin: 0 auto; background: url(left.png) no-repeat center center; padding: 0 15px; position: relative; z-index: 10; background-color: #F8F8F8; } &:after { content: ''; position: absolute; right: 5px; width: 100%; height: 1px; top: 50%; margin-top: -1px; background-color: #E4E4E4; } } } /** * submenu */ .nav-list { li { font-size: 13px; white-space: nowrap; &.open { border-bottom:none!important; &>.submenu{ border-bottom: 1px solid #DDDDDD; border-top: 1px solid #DDDDDD; &>li{ a { border-left: 1px dotted #8ECEFF; border-bottom: 1px dashed #EEEEEE; &:before { border-color: #8ECEFF !important; } } &:last-child { &>a{ border-bottom: none; } } } } &.active, &.opennow { border-right: 2px solid #2B7DBC; & > a { color: #333; border-left: 1px dotted #8ECEFF; & > [class*="fa-"]:first-child { color: #02A3EE; } } } & > a { & > .arrow { -webkit-transform: rotate(0deg); -ms-transform: rotate(0deg); -o-transform: rotate(0deg); transform: rotate(0deg); } } .submenu { display: block!important; } } } a { display: block; height: 60px; padding: 15px; font-size: 13px; line-height: 30px; color: $primary-color; text-decoration: none; position: relative; & > [class*="fa-"]:first-child { display: inline-block; vertical-align: middle; min-width: 30px; font-size: 18px; line-height: 30px; text-align: center; color: #585858; margin-top: -3px; margin-right: 5px; } & > .menu-text { display: inline-block; vertical-align: middle; } &:hover, &:focus { //background-color: transparent !important; text-decoration: none; } } .arrow { position: absolute; top: 50%; right: 5px; display: inline-block; margin-top: -15px; width: 30px !important; height: 30px; padding: 0; font-size: 18px; line-height: 30px; color: $icon-primary-color; text-align: center; -webkit-transition: transform .3s ease; -o-transition: transform .3s ease; transition: transform .3s ease; -webkit-transform: rotate(-180deg); -ms-transform: rotate(-180deg); -o-transform: rotate(-180deg); transform: rotate(-180deg); } & > li { position: relative; display: none; padding: 0; margin: 0; border: 0; background-color: #FFFFFF; &:first-child { display: block; } & > a { display: none; padding: 15px; } & > .submenu { position: relative; padding: 0; margin: 0; list-style: none; & > li { overflow: hidden; position: relative; background-color: #F8F8FE; border-bottom: 1px solid #EEEEEE; border-color: #EEEEEE; & > a { height: 40px; padding: 5px 0 10px 16px; background-color: #F8F8FE; color: #333333; font-weight: 500; border-left: none; } &.active, &.opennow { & > a { font-weight: 600; background-color: #EEEEEE; } &>.submenu{ &>li{ &>a{ border-bottom: 1px dashed #EEEEEE!important; border-left: 1px dotted #8ECEFF; } &:last-child { &>a{ border-bottom: none !important; } } } } } &>.submenu { display: none; background-color: #FFFFFF; & > li { padding-left: 30px; height: 36px; position: relative; background-color: #FFFFFF; border-left: 1px solid #EEEEEE; &:last-child { border-bottom: 0 none; } &:hover { background-color: #F5F5FE; &:before { content: ''; position: absolute; left: 29px; top: 50%; margin-top: -5px; z-index: 10; width: 5px; height: 11px; background: #F5F5FE url('blue.png') 1px 2px no-repeat; } & > a { border-left-color: #8ec8ff !important; border-bottom-color: #E4E4E4 !important; color: #333333!important; &:before { display: none; } } } &.active { background-color: #E8E8Ee; &:before { content: ''; position: absolute; left: 29px; top: 50%; margin-top: -5px; z-index: 10; width: 5px; height: 11px; background: #E8E8Ee url('red.png') 1px 2px no-repeat; } & > a { border-left-color: #8ECEFF !important; border-bottom-color: #E4E4E4 !important; color: #02A3EE; &:before { display: none; } } &:after { content: ''; position: absolute; right: 0; top: 50%; margin-top: -14px; width: 8px; height: 28px; background: url('blue_02.png') no-repeat; } } & > a { color: #777; height: 100%; padding: 10px 0 10px 23px; line-height: 15px; font-size: 13px; &:before { content: ''; height: 1px; width: 8px; border: 1px dotted #2B7DBC; position: absolute; left: 0; top: 50%; margin-top: -1px; } & > [class*="fa-"]:first-child { height: 6px; width: 6px; min-width: 6px; overflow: hidden; background-color: $icon-primary-color; border-radius: 50%; margin-right: 4px; display: none; } } } } } } } } .nav-list a .badge, .nav-list a .label { position: absolute; top: 9px; right: 11px; padding-right: 6px; padding-left: 6px; font-size: 12px; opacity: .88 } .nav-list a .badge [class*="fa-"], .nav-list a .label [class*="fa-"] { margin: 0; vertical-align: middle } .nav-list a.dropdown-toggle .badge, .nav-list a.dropdown-toggle .label { right: 28px } .nav-list a:hover .badge, .nav-list a:hover .label { opacity: 1 } .menu-min .nav-list a .badge, .menu-min .nav-list a .label { position: relative; top: -1px; right: auto; left: 4px } .nav-list .submenu .submenu a .badge, .nav-list .submenu .submenu a .label { top: 6px } .menu-min .nav-list .submenu .submenu a .badge, .menu-min .nav-list .submenu .submenu a .label { top: 0 } .menu-min { width: 90px; .sidebar_kind{ padding: 0; button{ width: 90px; &:last-child{ margin-left: 0; } } } &:before { width: 90px; } .nav-list { font-size: 13px; li.open{ border-bottom: 1px solid #EEEEEE!important; } & > li { & > .submenu { & > li { //overflow: visible; overflow: hidden; & > a { text-align: center; .menu-text, .arrow { display: none; } } } .submenu { border-left: 1px solid rgba(0, 0, 0, 0.1); display: none !important; position: absolute; left: 90px; top: 0; z-index: 2; width: 200px; & > li { padding-left: 20px; } } } } } .sidebar_back{ &>a{ background-image: url(right.png); } } } /** * contextmenu */ .contextmenu { background-color: #FFFFFF; border: 1px solid #D2D2D2; border-radius: 2px; position: absolute; z-index: 1; } .contextmenu > a { color: #000000; display: block; font-size: 12px; line-height: 36px; padding: 0 15px; } .contextmenu > a:hover, .contextmenu > a:focus { background-color: #EEEEEE; text-decoration: none; } .sidebar-collapse { position: relative; padding: 3px 0; text-align: center; background-color: #F3F3F3; border-bottom: 1px solid #E0E0E0 } .sidebar-collapse > [class*="fa-"] { position: relative; display: inline-block; padding: 0 5px; font-size: 14px; line-height: 18px; color: #AAAAAA; cursor: pointer; background-color: #FFFFFF; border: 1px solid #BBBBBB; border-radius: 16px } .sidebar-collapse:before { position: absolute; top: 13px; right: 15px; left: 15px; display: inline-block; height: 0; border-top: 1px solid #E0E0E0; content: "" } .sidebar-shortcuts { float: right; height: $header-height; line-height: $header-height; margin-right: 10px; display: none; } .breadcrumbs { position: relative; display: block; height: 100%; padding: 0 12px 0 0; background-color: transparent; } .main-content { min-height: 100%; padding: 0; margin-top: 0; overflow: hidden; } .page-content { padding: 8px 20px 24px; margin: 0; background: #FFFFFF } .main-container { position: relative; padding: 0 } .simplewind-nav { background-color: $header-admin-bgcolor; } .simplewind-nav > li:first-child { border-left: none } .simplewind-nav > li { position: relative; height: $header-height; padding: 0; line-height: 52px; border-left: 1px solid #DDDDDD; &.quick-link { background-color: $header-topnav-bgcolor; padding-right: 10px; &:hover { & > a { background-color: #4996D2 !important; } } & > a { background-color: #4996D2 !important; border-radius: 5px; height: 40px; line-height: 40px; margin: 20px 0; padding: 0 15px; &:hover { background-color: #4996D2 !important; } } } &:last-child{ padding: 0 20px; } } .simplewind-nav > li > a { position: relative; display: inline-block; line-height: 52px; height: 100%; color: #EEEEEE; background-color: transparent; } .simplewind-nav .nav-user-photo { max-width: 36px !important; margin: -4px 8px 0 0; border: 2px solid #FFFFFF; border-radius: 24px } .user-header { width: 60px; height: 60px; margin: 10px 0; } .navbar .brand { padding: 10px 20px 10px; } .admin-tab { overflow: hidden; padding: 0 20px; position: relative; height: 43px; background-color: #F5F5F5; display: none; &:after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background-color: #EEEFEF; } &_location { height: 100%; line-height: 43px; .info { &_title { font-size: 13px; display: inline-block; color: #000000; font-weight: 600; } &_list { display: inline-block; } &_cnt { font-size: 12px; color: #333333; padding: 0 12px; position: relative; display: inline-block; cursor: pointer; &:hover{ //color: #02A3EE; color: #EF7A01; } &:nth-last-child(1):after { display: none; } &:after { content: ''; position: absolute; right: 0; top: 50%; width: 4px; height: 8px; margin-top: -5px; background: url('right_02.png') no-repeat; } } } .iconfont { font-size: 13px; color: #8a8a8a; &:hover{ color: #ef7a01; } } .tips { margin-top: -4px; } } } .game-intro { position: relative; left: 5px; bottom: -6px; height: 20px; color: #333333; font-size: 12px; display: none; } .admin-tab_prev, .admin-tab_next { background-color: #FFFFFF; color: #6DCAF5; cursor: pointer; font-size: 12px; position: absolute; top: 17px; width: 40px; text-align: center; display: none; } .admin-tab_prev { left: 0; } .admin-tab_next { right: 0; } .admin-tab_prev:hover, .admin-tab_next:hover { color: $header-background-color; } .admin-tab_outer { position: relative; overflow: hidden; width: 1000%; display: none; } .admin-tab_inner { float: left; } .admin-tab_item { cursor: pointer; float: left; position: relative; &.active { &:after { content: ''; height: 2px; width: 100%; position: absolute; left: 0; bottom: 0; z-index: 1; background-color: #5EADF7; } } } .admin-tab_text { font-family: 'Microsoft Yahei', verdana; font-size: 12px; padding: 15px 25px !important; color: $muted-color; } .admin-tab_text:hover, .admin-tab_text:focus { background-color: transparent !important; color: $muted-color; } .admin-tab_text .fa:first-child { margin-right: 3px; } .admin-tab_txt { font-style: normal; } .admin-tab_close { color: #C2C2C2; font-size: 14px; margin-left: 5px; } .admin-tab_close:hover { color: #ED7669 } #loading { position: absolute; top: 10px; left: 250px; z-index: 9999; display: none; width: 100px; height: 26px; color: #FFFFFF; background: url("loadingbg.png") no-repeat } #loading .loadingicon { position: absolute; top: 0; left: 0; display: inline-block; width: 26px; height: 26px; background: url("loading.gif") no-repeat center } #loading span { margin-left: 26px; font-family: 'Microsoft Yahei', verdana; font-size: 12px; font-weight: bold; line-height: 26px } #right-tools-wrapper { position: absolute; top: 50px; right: 20px; z-index: 99; cursor: pointer } #right-tools-wrapper span { vertical-align: middle } #right-tools-wrapper span .right_tool_icon { width: 24px; height: 24px; font-size: 24px; color: #FFFFFF } #nav-wrapper { position: relative; height: 100%; border-right: 1px solid #CCCCCC; } .nav-list > li.open { position: absolute; top: 0; left: 0; z-index: 99; width: 100%; height: 100%; border-bottom-color: #E5E5E5 } .nav-list > li.open a { color: #FFFFFF; padding-left: 7px } .nav-list > li.open .normal { display: none !important } .nav-list > li.open .back { visibility: visible } .nav-list > li .back { visibility: hidden } .nav-list > li .fa.back { position: absolute; top: 11px; left: 10px; z-index: 1; width: 18px; height: auto; font-size: 14px; font-weight: normal; line-height: 12px; text-align: center; } .nav-list > li > .submenu:before { border-left: 0 solid #CCD7E2 } .nav_shortcuts { margin-top: 5px } #content { padding: 0; } #right-tools-wrapper span .right_tool_icon { color: #010101 } .nav .open > a, .nav .open > a:hover, .nav .open > a:focus { background: transparent; } // >1366px @media (max-width: 1366px) { .navbar-topnav { background-color: #2B7DBC; padding-left: 0; } .navbar-topnav > li { padding: 8px 12px; } .super-admin { padding: 0 12px !important; } .simplewind-nav > li:last-child { padding: 0 12px; } } @media (max-width: 1200px) { .navbar-topnav { background-color: #2B7DBC; padding-left: 0; } .navbar-topnav > li { padding: 8px 6px; } .super-admin { padding: 0 6px !important; } .simplewind-nav > li:last-child { padding: 0 6px; } } @media (max-width: 767px) { .navbar-header { float: left; } .navbar-collapse.collapse { display: block !important; height: auto !important; padding-bottom: 0; padding-right: 0; overflow: hidden; } .navbar-collapse.collapse ul, .navbar-collapse.collapse ul > li { float: left; margin: 0; } #navbar-main .navbar-right { float: right !important; } .navbar-nav .open .dropdown-menu { position: absolute; } }