body { margin:0; } .navbar-dark .navbar-nav .nav-link { color: white; cursor: pointer; text-decoration:none; } .nav-top { line-height:40px; background-color: #C4C4C4; } .website_title{ font-family: Roboto; font-style: normal; font-weight: normal; font-size: 30px; color: #000000; } .navbar-nav > li{ float: none; display: inline-block; width: 170px; margin: 0 auto; text-align: center; } .navbar-nav > li a{ font-size: 20px; } .main-page { margin-top: 200px; } .page-title { font-family: Roboto; font-style: normal; font-weight: bold; font-size: 36px; color: #000000; } form { margin-top: 70px; } .flex { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; } .flex span { font-family: Roboto; font-style: normal; font-weight: normal; font-size: 18px; color: #000000; } .from select, .to select { width: 60px; height: 35px; margin-left: 5px; } .from .music-select { width: 80px; } .from .wind-select { width: 80px; } .to { margin-top: 10px; } .tem, .led, .tem-near-stem, .music, .vibration, .wind-flow, .ultra-sonic { height: 400px; border: 2px solid #E5E5E5; border-radius: 5px; margin-top:35px; } .camera, .rh { height: 300px; border: 2px solid #E5E5E5; border-radius: 5px; margin-top:35px; } .item-title { display: inline-block; margin-top: 20px; margin-left: 20px; font-family: Roboto; font-style: normal; font-weight: bold; font-size: 24px; color: #000000; } .set-schedule { width: 200px; height: 45px; background: #008CBA; border: 1px solid #CFCFCF; box-sizing: border-box; color: #FFFFFF; border-radius: 5px; font-size: 17px; } .delete { background: #E43030; border: 1px solid #CFCFCF; box-sizing: border-box; border-radius: 5px; margin-left: 5px; width: 60px; height: 33px; font-size: 16px; text-align: center; line-height: 16px; color: #FFFFFF; } .add { background: #008CBA; border: 1px solid #CFCFCF; box-sizing: border-box; border-radius: 5px; margin-top: 10px; margin-left: 77px;; width: 65px; height: 33px; font-size: 16px; text-align: center; line-height: 16px; color: #FFFFFF; } .page-bottom { margin-top: 100px; } .form-control { background: #008CBA; border: 1px solid #CFCFCF; box-sizing: border-box; border-radius: 5px; width: 120px; height: 58px; text-align: center; line-height: 50px; color: #FFFFFF; display: inline-block; } .cmn-toggle { position: absolute; margin-left: 0px; visibility: hidden; } .cmn-toggle + label { display: block; position: relative; cursor: pointer; outline: none; user-select: none; } input.cmn-toggle-round-flat + label { padding: 2px; width: 60px; height: 30px; background-color: #C0C0C0; border-radius: 60px; transition: background 0.4s; } input.cmn-toggle-round-flat + label:before, input.cmn-toggle-round-flat + label:after { display: block; position: absolute; content: ""; } input.cmn-toggle-round-flat + label:before { top: 2px; left: 2px; bottom: 2px; right: 2px; background-color: #fff; border-radius: 60px; transition: background 0.4s; } input.cmn-toggle-round-flat + label:after { top: 4px; left: 4px; bottom: 4px; width: 24px; background-color: #dddddd; border-radius: 52px; transition: margin 0.4s, background 0.4s; } input.cmn-toggle-round-flat:checked + label { background-color: #C0C0C0; } input.cmn-toggle-round-flat:checked + label:after { margin-left: 27px; background-color: #008CBA; } .btn-configure { width: 100px; height: 35px; font-size: 14px; color: #000000; background: #FBFBFB; border: 1px solid #CFCFCF; box-sizing: border-box; border-radius: 5px; } #configure { position: absolute; top: 100px; left: 10%; width: 1100px; height: 900px; background: #FFFFFF; border: 1px solid #949494; box-sizing: border-box; display: block; } #configure > h1 { text-align: center; } #configuration_nav { margin-top: 20px; width: 100%; height: 45px; background: #F3F3F3; border: 1px solid #E2E2E2; box-sizing: border-box; } /*下滑線跟隨*/ #configuration_nav ul{ display: flex; position: initial; line-height: 45px; margin-top: 0; padding-left: 350px; } #configuration_nav li{ position: relative; font-size: 18px; list-style: none; white-space:nowrap; margin-right: 50px; text-align: center; } #configuration_nav a { text-decoration: none; color: #000000; } #configuration_nav li.current_li{ list-style-type:none; border-bottom:2px solid #008CBA; } #configuration_nav a:active, a:hover, a.current { color: #000000; } #configuration_nav li::after{ content: ''; position: absolute; bottom: 0; width: 0; height: 2px; color: #ff231c; background-color: #008CBA; transition: .2s all linear; } #configuration_nav li:hover::after{ width: 100%; } #configuration_nav li::after{ left: 100%; /*选中项上一个下划线收回的方向,从左往右收线*/ } #configuration_nav li:hover::after{ left: 0; /*选中项下划线出线的方向,从左往右出线*/ } #configuration_nav li:hover ~ li::after { left: 0; /*选中项下一个下划线出线的方向,从左往右收线*/ } #cancel_confirm { position: absolute; height: 300px; width: 400px; top: 1050px; left: 39%; } #cancel_confirm input{ background: #008CBA; border: 1px solid #CFCFCF; box-sizing: border-box; border-radius: 5px; width: 120px; height: 58px; text-align: center; line-height: 58px; font-size: 15px; margin-top: 100px; color: #FFFFFF; } #confirm { margin-left: 150px; } .color_info { position: relative; margin-top: 100px; margin-left: 100px; } .color-top { width: 900px; height: 450px; } .color-bottom { width: 900px; } .color-bottom > div:first-child { height: 40px; font-size: 20px; line-height: 40px; text-align: left; border-bottom: 2px solid #008CBA; } .color-group { display: inline-block; float:left; } .js-color { height:30px; width:30px; } .show_color { position: absolute; height: 250px; width: 250px; left: 65%; } .span_color { position: absolute; left: 73%; top: 300px; } .down-arrow { width: 40px; height: 40px; margin-left: 10px; } .down-arrow:after { content: ''; display: inline-block; width: 20px; height: 20px; border-right: 2px solid #008CBA; border-top: 2px solid #008CBA; transform: rotate(135deg); } .up-arrow { width: 40px; height: 40px; margin-left: 10px; display: none; } .up-arrow:after { content: ''; display: inline-block; width: 15px; height: 15px; border-left: 2px solid #008CBA; border-bottom: 2px solid #008CBA; transform: rotate(135deg); } .cancel-confirm { text-align: center; } .cancel-confirm input{ background: #008CBA; border: 1px solid #CFCFCF; box-sizing: border-box; border-radius: 5px; width: 120px; height: 58px; text-align: center; line-height: 58px; font-size: 15px; margin-top: 50px; color: #FFFFFF; } .cancel-confirm input:last-child { margin-left: 150px; } .slider { position: absolute; left: -50px; transform: rotate(-90deg); } .slider-container { position: relative; margin-top: 100px; width: 80px; height: 150px; display: inline-block; } .slider-container span{ position: absolute; top: 115px; } .brightness_info > div:first-child { text-align: center; margin-top: 250px; } .brightness_info .switch_div { position: relative; margin-top: 70px; margin-bottom: 150px; text-align: center; vertical-align: center; font-size: 20px; } .brightness_info .switch_div span { position: absolute; margin-right: 30px; left: 400px; top: 5px; } .brightness_info .switch { display: inline-block; position: absolute; left: 600px; } .recomendation_info > div { position: relative; display: inline-block; width: 45%; height: 50px; margin-top: 100px; text-align: center; } .recomendation_info .switch_div_right { width: 15%; } .recomendation_info .switch { position: absolute; display: inline-block; left: 400px; } .recomendation_info .switch_div_right .switch { left:230px; } .recomendation_info span { position: absolute; margin-right: 30px; top: 5px; } @media(max-width:373px){ .card { margin-right: 0px; } } @media(max-width:577px){ } @media(min-width:576px){ } @media(min-width:768px){ .navbar-nav > li { margin-left: 0px; } .navbar-nav .li-block { display:none; } } @media(min-width:991px){ .navbar-nav > li { margin-left: 20px; } .navbar-nav .li-block { display:none; } .page-bottom input:last-child { margin-left: 100px; } } @media(min-width:1200px){ .navbar-nav > li { margin-left: 50px; } .navbar-nav .li-block { display: inline-block; width: 100px; } .tem > input { margin-left:50px; } .page-bottom input:last-child { margin-left: 100px; } } @media(min-width:1400px){ .navbar-nav .li-block { display: inline-block; width: 250px; } .tem > input { margin-left:150px; } .page-bottom input:last-child { margin-left: 100px; } } @media(min-width:1689px) { .navbar-nav > li { margin-left: 50px; } .navbar-nav .li-block { display: inline-block; width: 580px; } .tem > input { margin-left: 150px; } .page-bottom input:last-child { margin-left: 100px; } }