UNPKG

xn-directive-location

Version:

address directive

658 lines (625 loc) 16.6 kB
/*xnLocationCity begin*/ .xn-location-city{ position: relative; } .xn-location-city .xn-location-select-box{ width: 100%; height: 34px; border: 1px solid #ccc; border-radius: 4px; background: #fff; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; } .xn-location-city .xn-location-select-box .xn-location-select-span{ padding: 0 3px; display: inline-block; line-height: 34px; } .xn-location-city .xn-location-select-box .form-control{ width: auto; border: transparent; background: transparent; display: none; } .xn-location-city .open-city{ border: 1px solid #9b9b9b; width: 450px; height: auto; position: absolute; z-index: 1; background: #fff; } .xn-location-city .open-city h4{ padding: 8px 10px; background: #5cb85c; margin: -1px; font-size: 16px; } .xn-location-city .open-city .close{ padding: 2px 5px; color: #fff; z-index: 1; filter:alpha(opacity=100); opacity: 1; } .xn-location-city .open-city .ng-isolate-scope{ width: 430px; margin: 5px; } .xn-location-city .open-city .nav-tabs.nav-justified > li{ cursor: pointer; } .xn-location-city .open-city .nav-tabs.nav-justified > li > a{ padding: 5px; } .xn-location-city .open-city .tab-content{ padding: 5px; } .xn-location-city .open-city .tab-content dt{ float: left; width: 25px; text-align: center; color: #f60; line-height: 22px; padding: 2px; } .xn-location-city .open-city .tab-content dd{ padding-left: 10px; float: left; width: 395px; } .xn-location-city .open-city .tab-content .open-city-span{ line-height: 22px; width: 72px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; display: inline-block; border: 1px solid transparent; padding: 2px; cursor: pointer; } .xn-location-city .open-city .tab-content .open-city-span-select{ background: #fff8ee; border: 1px solid #ffd5a1; } .xn-location-city .open-city .tab-content span:hover{ background: #fff8ee; border: 1px solid #ffd5a1; } /*xnLocationCity end*/ /*xnLocation begin*/ .xn-location .xn-location-select{ width:33.3333%; float: left; padding-right:15px; line-height: 34px; } .xn-location .xn-input-line .xn-location-select:nth-child(3){ padding-right:0; } .xn-location .xn-location-map{ height: 200px; border: 1px solid #dcdcdc; } /*xnLocation end*/ /*快递城市选择*/ .xn-location-city .xn-location-province-city{ width: 100%; } .xn-location-city .xn-location-province-city .city-list{ margin-right: 40px; line-height: 34px; min-height: 34px; } .xn-location-city .xn-location-province-city .city-list .list-span{ float: left; margin-right: 5px; } .xn-location-city .xn-location-province-city .city-edit{ width: 40px; line-height: 34px; float:right; cursor: pointer; padding-left: 5px; height: 34px; } .xn-location-city .open-city .province-city-contect{ width: 100%; height: auto; padding: 10px; line-height: 34px; } .xn-location-city .open-city .province-city-contect .province-line{ width: 107px; float: left; position: relative; } .xn-location-city .open-city .province-city-contect .province-line .province-line-box{ width: 107px; border: 1px solid transparent; padding-left:5px; } .xn-location-city .open-city .province-city-contect .province-line .province-line-box-hover { border: 1px solid #f7e4a5; background: #FFFEC6; } .xn-location-city .open-city .province-city-contect .province-line .city-line-box-hover { border: 1px solid #f7e4a5; background: #F9FCDE; } .xn-location-city .open-city .province-city-contect .province-line .xn-label-checkbox { position: relative; line-height: 34px; height: 34px; cursor: pointer; display: inline-block; float: left } .xn-location-city .open-city .province-city-contect .province-line .xn-label-checkbox .xn-checkbox{ width: 20px; height: 20px; border: 1px solid #ccc; display: inline-block; margin-top: 7px; margin-right: 7px; border-radius: 4px; position: relative; top: 0; float: left; } .xn-location-city .open-city .province-city-contect .province-line .xn-label-checkbox .icon-right_3 { position: absolute; left: 5px; z-index: 1; font-size: 18px; height: 20px; width: 20px; top: 5px; line-height: 20px; color: #40a337; } .xn-location-city .open-city .province-city-contect .province-line .xn-label-checkbox .name { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; width: 50px; float: left; } .xn-location-city .open-city .province-city-contect .province-line .icon-downward-1 { cursor: pointer; } .xn-location-city .open-city .province-city-contect .province-line .child-list{ position: absolute; left:0; line-height: 34px; min-height: 34px; width: 320px; border: 1px solid #f7e4a5; background: #FFFEC6; z-index: 3; margin-top: -1px; padding: 0px 4px; } .xn-location-city .open-city .province-city-contect .province-line .child-list .list{ padding-left: 5px; width: auto; float: left; margin-top: 5px; } /*.xn-location-city .open-city .province-city-contect .province-line .child-list .list .xn-label-checkbox{ float: left; }*/ .xn-location-city .open-city .province-city-contect .province-line .child-list .list .name{ width: auto; } .xn-location-city .open-city .province-city-contect .province-line .city-child-list { width: 340px; } .xn-location-city .open-city .province-city-contect .province-line .city-child-list .list{ width: 107px; } .xn-location-city .open-city .province-city-contect .province-line .city-child-list .list .name{ width: 50px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; } .xn-location-city .open-city .province-city-contect .province-line .city-child-list .child-list { position: absolute; right:0; line-height: 34px; min-height: 34px; width: 340px; border: 1px solid #f7e4a5; background: #F9FCDE; z-index: 3; margin-top: -1px; padding: 0px 4px; } .xn-location-city .open-city .province-city-contect .province-line .city-child-list .child-list .name{ width: auto; } .xn-location-city .open-city .province-city-contect .province-line .city-child-list .child-list .list { width: auto; } /*省市区*/ .xn-location-district{ position: relative; } .xn-location-district .location-content{ overflow: hidden; text-overflow:ellipsis; white-space:nowrap; } .xn-location-district .location-content .placeholder{ color: #999; } .xn-location-district .location-apostrophe{ float: right; } .xn-location-district .location-apostrophe{ float: right; } .xn-location-district .location-box{ position: absolute; left:0; z-index: 1; width: 400px; height: auto; } .xn-location-district .location-box .nav-location{ width: 100%; height: 34px; background: #fff; } .xn-location-district .location-box .nav-location .isolate-scope{ border-top: 1px solid #dcdcdc; border-left: 1px solid #dcdcdc; border-right: 1px solid #dcdcdc; margin-right: -1px; height: 34px; width: 80px; float: left; cursor: pointer; line-height: 32px; text-align: center; background: #fff; } .xn-location-district .location-box .location-town .isolate-scope{ width: 70px; } .xn-location-district .location-box .nav-location .isolate-clear{ background: #fff; height: 34px; width: 60px; cursor: pointer; line-height: 32px; text-align: center; float: right; } .xn-location-district .location-box .nav-location .isolate-scope span{ color: #ff0000; } .xn-location-district .location-box .nav-location .active { border-top: 2px solid #999; border-left: 1px solid #9ebd5f; border-right: 1px solid #9ebd5f; z-index: 4; position: relative; height: 35px; margin-bottom: -1px; line-height: 31px; } .xn-location-district .location-box .tab-content{ border: 1px solid #9ebd5f; background: #fff; padding: 5px; position: relative; } .xn-location-district .location-box .tab-content .info{ position: absolute; top:0; left: 0; bottom:0; right: 0; width: 100%; height: 100%; background: #000; filter:alpha(opacity=80); -moz-opacity:0.8; -khtml-opacity: 0.8; opacity: 0.8; } .xn-location-district .location-box .tab-content .info .span{ position: absolute; top:50%; left: 0; width: 100%; font-size: 14px; color: #fff; line-height:20px; text-align: center; height: 20px; margin-top: -10px; } .xn-location-district .location-box .tab-content .province-dl{ } .xn-location-district .location-box .tab-content .province-dl .province-dt{ float: left; width: 50px; text-align: center; color: #f60; line-height: 22px; padding: 2px; } .xn-location-district .location-box .tab-content .province-dl .province-dd{ padding-left: 10px; float: left; width: 330px; line-height: 22px; } .xn-location-district .location-box .tab-content .province-dl .province-dd .span-scope{ width: 72px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; padding: 2px; } .xn-location-district .location-box .tab-content .span-scope{ line-height: 22px; text-overflow: ellipsis; display: inline-block; border: 1px solid transparent; cursor: pointer; padding: 2px 10px; } .xn-location-district .location-box .tab-content .span-scope:hover{ background: #fff8ee; border: 1px solid #ffd5a1; } .xn-location-district .location-box .tab-content .district-failure{ margin-top: 5px; border-top: 1px solid #dcdcdc; padding-top: 5px; } .xn-location-district .location-box .tab-content .district-failure .failure-line{ line-height: 24px; color: #999; width: 50%; float: left; height: 24px; padding: 0 5px ; } .xn-location-district .location-box .tab-content .district-failure .failure-line{ line-height: 24px; color: #999; width: 50%; float: left; height: 24px; padding: 0 5px ; } .xn-location-district .location-box .tab-content .district-failure .noTown{ line-height: 22px; text-overflow: ellipsis; display: inline-block; border: 1px solid transparent; cursor: pointer; padding: 2px 10px; color: #ffd5a1; } .xn-location-city .open-city .province-city-contect .province-line-break{ width:107px; height: 34px; float: left; position: relative; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; cursor: pointer; } .xn-location-city .open-city .province-city-contect .province-line .province-line-break { position: relative; line-height: 34px; height: 34px; cursor: pointer; display: inline-block; float: left } .xn-location-city .open-city .province-city-contect .province-line .province-line-break .xn-checkbox{ width: 20px; height: 20px; border: 1px solid #ccc; display: inline-block; margin-top: 7px; margin-right: 7px; border-radius: 4px; position: relative; top: 0; float: left; } .xn-location-city .open-city .province-city-contect .province-line .province-line-break .icon-right_3 { position: absolute; left: 5px; z-index: 1; font-size: 18px; height: 20px; width: 20px; top: 5px; line-height: 20px; color: #40a337; } .xn-location-city .open-city .province-city-contect .province-line .province-line-break .name { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; width: 50px; float: left; } .xn-location-city .open-city .province-city-contect .province-line-break .xn-label-checkbox { position: relative; line-height: 34px; height: 34px; cursor: pointer; display: inline-block; float: left } .xn-location-city .open-city .province-city-contect .province-line-break .xn-label-checkbox .xn-checkbox{ width: 20px; height: 20px; border: 1px solid #ccc; display: inline-block; margin-top: 7px; margin-right: 7px; border-radius: 4px; position: relative; top: 0; float: left; } .xn-location-city .open-city .province-city-contect .province-line-break .xn-label-checkbox .icon-right_3 { position: absolute; left: 5px; z-index: 1; font-size: 18px; height: 20px; width: 20px; top: 5px; line-height: 20px; color: #40a337; } .xn-location-city .open-city .province-city-contect .province-line-break .xn-label-checkbox .name { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; width: 50px; float: left; } .check-all-checkbox{ position: relative; line-height: 34px; height: 34px; cursor: pointer; display: inline-block; float: left } .check-all-checkbox .icon-right_3 { position: absolute; left: 5px; z-index: 1; font-size: 18px; height: 20px; width: 20px; top: 5px; line-height: 20px; color: #40a337; } .check-all-checkbox .xn-checkbox{ width: 20px; height: 20px; border: 1px solid #ccc; display: inline-block; margin-top: 7px; margin-right: 7px; border-radius: 4px; position: relative; top: 0; float: left; } .xn-tree-multipselect{ position: relative; float: left; width: 100%; line-height: 34px; } .xn-tree-multipselect .icon-downward-1 { position: absolute; margin-left: -13px; font-size: 12px; } .xn-tree-multipselect .form-control[readonly]{ cursor: pointer; background-color: #fff; float:left; } .xn-tree-multipselect .xn-tree-list-div{ border: 1px solid #ddd; border-radius: 4px; width: 100%; position: absolute; background-color: #fff; z-index: 99; margin-top: 34px; box-shadow: 0 0 20px; } .xn-tree-multipselect .xn-tree-list-div .level-content{ max-height: 340px; white-space: nowrap; overflow: auto; width:100%; } .xn-tree-multipselect .xn-tree-list-div .level-content .level-content-box{ display: inline-block; min-width: 100%; } .xn-tree-multipselect .xn-tree-list-div .xn-tree-item{ padding: 0 15px 0 15px; cursor: pointer; min-height: 34px; } .xn-tree-multipselect .xn-tree-list-div .xn-tree-item:hover{ background-color: #1E90FF; color: #fff; } .xn-tree-multipselect .xn-tree-list-div .level-0{ background-color: #FAF8FD; min-height: 34px; } .xn-tree-multipselect .xn-tree-list-div .level-content .level-content-box .xn-tree-item .xn-checkbox{ float: none; margin-top: 0px; position: relative; top: 5px; width: 20px; height: 20px; border: 1px solid #ccc; display: inline-block; margin-right: 7px; border-radius: 4px; } .xn-tree-multipselect .xn-tree-list-div .level-content .level-content-box .xn-label-checkbox{ position: relative; line-height: 34px; cursor: pointer; } .xn-tree-multipselect .xn-tree-list-div .level-0 .f-right { float:right; } .xn-tree-multipselect .xn-tree-list-div .level-content .level-content-box .xn-label-checkbox .xn-checkbox{ width: 20px; height: 20px; border: 1px solid #ccc; display: inline-block; margin-top: 0; margin-right: 7px; border-radius: 4px; float: none; } .xn-tree-multipselect .xn-tree-list-div .level-content .level-content-box .xn-label-checkbox .icon-right_3{ position: absolute; left: 2px; z-index: 1; font-size: 18px; height: 20px; width: 20px; top: 8px; line-height: 20px; color: #40a337; } .xn-tree-multipselect .xn-tree-list-div .level-content .level-content-box .xn-label-checkbox .xn-checkbox-input{ display: none; } .pl-15{ padding-left:15px; }