set_root.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612
  1. body {
  2. margin:0;
  3. }
  4. .navbar-dark .navbar-nav .nav-link {
  5. color: white;
  6. cursor: pointer;
  7. text-decoration:none;
  8. }
  9. .nav-top {
  10. line-height:40px;
  11. background-color: #C4C4C4;
  12. }
  13. .website_title{
  14. font-family: Roboto;
  15. font-style: normal;
  16. font-weight: normal;
  17. font-size: 30px;
  18. color: #000000;
  19. }
  20. .navbar-nav > li{
  21. float: none;
  22. display: inline-block;
  23. width: 170px;
  24. margin: 0 auto;
  25. text-align: center;
  26. }
  27. .navbar-nav > li a{
  28. font-size: 20px;
  29. }
  30. .main-page {
  31. margin-top: 200px;
  32. }
  33. .page-title {
  34. font-family: Roboto;
  35. font-style: normal;
  36. font-weight: bold;
  37. font-size: 36px;
  38. color: #000000;
  39. }
  40. form {
  41. margin-top: 70px;
  42. }
  43. .flex {
  44. display: flex;
  45. flex-direction: row;
  46. flex-wrap: wrap;
  47. justify-content: center;
  48. }
  49. .flex span {
  50. font-family: Roboto;
  51. font-style: normal;
  52. font-weight: normal;
  53. font-size: 18px;
  54. color: #000000;
  55. }
  56. .from select, .to select {
  57. width: 60px;
  58. height: 35px;
  59. margin-left: 5px;
  60. }
  61. .from .tem-select{
  62. width: 75px;
  63. }
  64. .to {
  65. margin-top: 10px;
  66. }
  67. .tem,.lamp {
  68. height: 400px;
  69. border: 2px solid #E5E5E5;
  70. border-radius: 5px;
  71. margin-top:35px;
  72. }
  73. .fan {
  74. height: 350px;
  75. border: 2px solid #E5E5E5;
  76. border-radius: 5px;
  77. margin-top:35px;
  78. }
  79. .humidity {
  80. height: 250px;
  81. border: 2px solid #E5E5E5;
  82. border-radius: 5px;
  83. margin-top:35px;
  84. }
  85. .item-title {
  86. display: inline-block;
  87. margin-top: 20px;
  88. margin-left: 20px;
  89. font-family: Roboto;
  90. font-style: normal;
  91. font-weight: bold;
  92. font-size: 24px;
  93. color: #000000;
  94. }
  95. .set-schedule {
  96. width: 200px;
  97. height: 45px;
  98. background: #008CBA;
  99. border: 1px solid #CFCFCF;
  100. box-sizing: border-box;
  101. color: #FFFFFF;
  102. border-radius: 5px;
  103. font-size: 17px;
  104. }
  105. .delete {
  106. background: #E43030;
  107. border: 1px solid #CFCFCF;
  108. box-sizing: border-box;
  109. border-radius: 5px;
  110. margin-left: 5px;
  111. width: 60px;
  112. height: 33px;
  113. font-size: 16px;
  114. text-align: center;
  115. line-height: 16px;
  116. color: #FFFFFF;
  117. }
  118. .add {
  119. background: #008CBA;
  120. border: 1px solid #CFCFCF;
  121. box-sizing: border-box;
  122. border-radius: 5px;
  123. margin-top: 10px;
  124. margin-left: 77px;;
  125. width: 65px;
  126. height: 33px;
  127. font-size: 16px;
  128. text-align: center;
  129. line-height: 16px;
  130. color: #FFFFFF;
  131. }
  132. .page-bottom {
  133. margin-top: 100px;
  134. }
  135. .form-control {
  136. background: #008CBA;
  137. border: 1px solid #CFCFCF;
  138. box-sizing: border-box;
  139. border-radius: 5px;
  140. width: 120px;
  141. height: 58px;
  142. text-align: center;
  143. line-height: 50px;
  144. color: #FFFFFF;
  145. display: inline-block;
  146. }
  147. .cmn-toggle {
  148. position: absolute;
  149. margin-left: 0px;
  150. visibility: hidden;
  151. }
  152. .cmn-toggle + label {
  153. display: block;
  154. position: relative;
  155. cursor: pointer;
  156. outline: none;
  157. user-select: none;
  158. }
  159. input.cmn-toggle-round-flat + label {
  160. padding: 2px;
  161. width: 60px;
  162. height: 30px;
  163. background-color: #C0C0C0;
  164. border-radius: 60px;
  165. transition: background 0.4s;
  166. }
  167. input.cmn-toggle-round-flat + label:before,
  168. input.cmn-toggle-round-flat + label:after {
  169. display: block;
  170. position: absolute;
  171. content: "";
  172. }
  173. input.cmn-toggle-round-flat + label:before {
  174. top: 2px;
  175. left: 2px;
  176. bottom: 2px;
  177. right: 2px;
  178. background-color: #fff;
  179. border-radius: 60px;
  180. transition: background 0.4s;
  181. }
  182. input.cmn-toggle-round-flat + label:after {
  183. top: 4px;
  184. left: 4px;
  185. bottom: 4px;
  186. width: 24px;
  187. background-color: #dddddd;
  188. border-radius: 52px;
  189. transition: margin 0.4s, background 0.4s;
  190. }
  191. input.cmn-toggle-round-flat:checked + label {
  192. background-color: #C0C0C0;
  193. }
  194. input.cmn-toggle-round-flat:checked + label:after {
  195. margin-left: 27px;
  196. background-color: #008CBA;
  197. }
  198. .btn-configure {
  199. width: 100px;
  200. height: 35px;
  201. font-size: 14px;
  202. color: #000000;
  203. background: #FBFBFB;
  204. border: 1px solid #CFCFCF;
  205. box-sizing: border-box;
  206. border-radius: 5px;
  207. }
  208. #configure {
  209. position: absolute;
  210. width: 1100px;
  211. height: 900px;
  212. left: 10%;
  213. top: 28%;
  214. background: #FFFFFF;
  215. border: 1px solid #949494;
  216. box-sizing: border-box;
  217. display: block;
  218. }
  219. #configure > h1 {
  220. text-align: center;
  221. }
  222. #configuration_nav {
  223. margin-top: 20px;
  224. width: 100%;
  225. height: 45px;
  226. background: #F3F3F3;
  227. border: 1px solid #E2E2E2;
  228. box-sizing: border-box;
  229. }
  230. /*下滑線跟隨*/
  231. #configuration_nav ul{
  232. display: flex;
  233. position: initial;
  234. line-height: 45px;
  235. margin-top: 0;
  236. padding-left: 350px;
  237. }
  238. #configuration_nav li{
  239. position: relative;
  240. font-size: 18px;
  241. list-style: none;
  242. white-space:nowrap;
  243. margin-right: 50px;
  244. text-align: center;
  245. }
  246. #configuration_nav a {
  247. text-decoration: none;
  248. color: #000000;
  249. }
  250. #configuration_nav li.current_li{
  251. list-style-type:none;
  252. border-bottom:2px solid #008CBA;
  253. }
  254. #configuration_nav a:active, a:hover, a.current {
  255. color: #000000;
  256. }
  257. #configuration_nav li::after{
  258. content: '';
  259. position: absolute;
  260. bottom: 0;
  261. width: 0;
  262. height: 2px;
  263. color: #ff231c;
  264. background-color: #008CBA;
  265. transition: .2s all linear;
  266. }
  267. #configuration_nav li:hover::after{
  268. width: 100%;
  269. }
  270. #configuration_nav li::after{
  271. left: 100%; /*选中项上一个下划线收回的方向,从左往右收线*/
  272. }
  273. #configuration_nav li:hover::after{
  274. left: 0; /*选中项下划线出线的方向,从左往右出线*/
  275. }
  276. #configuration_nav li:hover ~ li::after {
  277. left: 0; /*选中项下一个下划线出线的方向,从左往右收线*/
  278. }
  279. #cancel_confirm {
  280. position: absolute;
  281. height: 300px;
  282. width: 400px;
  283. top: 1050px;
  284. left: 39%;
  285. }
  286. #cancel_confirm input{
  287. background: #008CBA;
  288. border: 1px solid #CFCFCF;
  289. box-sizing: border-box;
  290. border-radius: 5px;
  291. width: 120px;
  292. height: 58px;
  293. text-align: center;
  294. line-height: 58px;
  295. font-size: 15px;
  296. margin-top: 100px;
  297. color: #FFFFFF;
  298. }
  299. #confirm {
  300. margin-left: 150px;
  301. }
  302. .color_info {
  303. position: relative;
  304. margin-top: 100px;
  305. margin-left: 100px;
  306. }
  307. .color-top {
  308. width: 900px;
  309. height: 450px;
  310. }
  311. .color-bottom {
  312. width: 900px;
  313. }
  314. .color-bottom > div:first-child {
  315. height: 40px;
  316. font-size: 20px;
  317. line-height: 40px;
  318. text-align: left;
  319. border-bottom: 2px solid #008CBA;
  320. }
  321. .color-group {
  322. display: inline-block;
  323. float:left;
  324. }
  325. .js-color {
  326. height:30px;
  327. width:30px;
  328. }
  329. .show_color {
  330. position: absolute;
  331. height: 250px;
  332. width: 250px;
  333. left: 65%;
  334. }
  335. .span_color {
  336. position: absolute;
  337. left: 73%;
  338. top: 300px;
  339. }
  340. .down-arrow {
  341. width: 40px;
  342. height: 40px;
  343. margin-left: 10px;
  344. }
  345. .down-arrow:after {
  346. content: '';
  347. display: inline-block;
  348. width: 20px;
  349. height: 20px;
  350. border-right: 2px solid #008CBA;
  351. border-top: 2px solid #008CBA;
  352. transform: rotate(135deg);
  353. }
  354. .up-arrow {
  355. width: 40px;
  356. height: 40px;
  357. margin-left: 10px;
  358. display: none;
  359. }
  360. .up-arrow:after {
  361. content: '';
  362. display: inline-block;
  363. width: 15px;
  364. height: 15px;
  365. border-left: 2px solid #008CBA;
  366. border-bottom: 2px solid #008CBA;
  367. transform: rotate(135deg);
  368. }
  369. .cancel-confirm {
  370. text-align: center;
  371. }
  372. .cancel-confirm input{
  373. background: #008CBA;
  374. border: 1px solid #CFCFCF;
  375. box-sizing: border-box;
  376. border-radius: 5px;
  377. width: 120px;
  378. height: 58px;
  379. text-align: center;
  380. line-height: 58px;
  381. font-size: 15px;
  382. margin-top: 50px;
  383. color: #FFFFFF;
  384. }
  385. .cancel-confirm input:last-child {
  386. margin-left: 150px;
  387. }
  388. .slider {
  389. position: absolute;
  390. left: -50px;
  391. transform: rotate(-90deg);
  392. }
  393. .slider-container {
  394. position: relative;
  395. margin-top: 100px;
  396. width: 80px;
  397. height: 150px;
  398. display: inline-block;
  399. }
  400. .slider-container span{
  401. position: absolute;
  402. top: 115px;
  403. }
  404. .brightness_info > div:first-child {
  405. text-align: center;
  406. margin-top: 250px;
  407. }
  408. .brightness_info .switch_div {
  409. position: relative;
  410. margin-top: 70px;
  411. margin-bottom: 150px;
  412. text-align: center;
  413. vertical-align: center;
  414. font-size: 20px;
  415. }
  416. .brightness_info .switch_div span {
  417. position: absolute;
  418. margin-right: 30px;
  419. left: 400px;
  420. top: 5px;
  421. }
  422. .brightness_info .switch {
  423. display: inline-block;
  424. position: absolute;
  425. left: 600px;
  426. }
  427. .recomendation_info > div {
  428. position: relative;
  429. display: inline-block;
  430. width: 45%;
  431. height: 50px;
  432. margin-top: 100px;
  433. text-align: center;
  434. }
  435. .recomendation_info .switch_div_right {
  436. width: 15%;
  437. }
  438. .recomendation_info .switch {
  439. position: absolute;
  440. display: inline-block;
  441. left: 400px;
  442. }
  443. .recomendation_info .switch_div_right .switch {
  444. left:230px;
  445. }
  446. .recomendation_info span {
  447. position: absolute;
  448. margin-right: 30px;
  449. top: 5px;
  450. }
  451. @media(max-width:373px){
  452. .card {
  453. margin-right: 0px;
  454. }
  455. }
  456. @media(max-width:577px){
  457. }
  458. @media(min-width:576px){
  459. }
  460. @media(min-width:768px){
  461. .navbar-nav > li {
  462. margin-left: 0px;
  463. }
  464. .navbar-nav .li-block {
  465. display:none;
  466. }
  467. }
  468. @media(min-width:991px){
  469. .navbar-nav > li {
  470. margin-left: 20px;
  471. }
  472. .navbar-nav .li-block {
  473. display:none;
  474. }
  475. .page-bottom input:last-child {
  476. margin-left: 100px;
  477. }
  478. }
  479. @media(min-width:1200px){
  480. .navbar-nav > li {
  481. margin-left: 50px;
  482. }
  483. .navbar-nav .li-block {
  484. display: inline-block;
  485. width: 100px;
  486. }
  487. .tem > input {
  488. margin-left:50px;
  489. }
  490. .page-bottom input:last-child {
  491. margin-left: 100px;
  492. }
  493. }
  494. @media(min-width:1400px){
  495. .navbar-nav .li-block {
  496. display: inline-block;
  497. width: 250px;
  498. }
  499. .tem > input {
  500. margin-left:150px;
  501. }
  502. .page-bottom input:last-child {
  503. margin-left: 100px;
  504. }
  505. }
  506. @media(min-width:1689px) {
  507. .navbar-nav > li {
  508. margin-left: 50px;
  509. }
  510. .navbar-nav .li-block {
  511. display: inline-block;
  512. width: 580px;
  513. }
  514. .tem > input {
  515. margin-left: 150px;
  516. }
  517. .page-bottom input:last-child {
  518. margin-left: 100px;
  519. }
  520. }