Newer
Older
nikko / suiro / map.css
@natto natto on 24 Jan 2019 3 KB add_gps_function
body {padding: 0; margin: 0;}
div#mymap {width: 100vw; height: 100vh; margin: 0 auto;}
.lorem {font-style: italic; color: #AAA;}

#sidebar{top:100;
background-color:red;}

.sidebar-tabs{

}

#info_btm{
//position:absolute;
bottom:1em;
background-color:lime;
overflow:scroll;
width:30%;
opacity:0.8;
}

.maru{
background-color:white;
border-radius:50%;
padding:0px 5px 0px 5px;
border:2px;
margin:5px;
opacity:1.0;
}

.info_type .maru{
background-color:white;
font-size:small;
}

#aa{
background-color:white;
}



//.sidebar-header{position:fixed}
//.leaflet-control-zoom{padding-left:40px}
//.leaflet-control-layers{z-index:10000000000000000000000000000}


 /* === ボタンを表示するエリア ============================== */
#switchArea {
  line-height    : 32px;                /* 1行の高さ          */
  letter-spacing : 0;                   /* 文字間             */
  text-align     : center;              /* 文字位置は中央     */
  font-size      : 13px;                /* 文字サイズ         */

  position       : relative;            /* 親要素が基点       */
  margin         : auto;                /* 中央寄せ           */
  width          : 69px;               /* ボタンの横幅       */
  background     : #fff;                /* デフォルト背景色   */
}

 /* === チェックボックス ==================================== */
#switchArea input[type="checkbox"] {
  display        : none;            /* チェックボックス非表示 */
}

 /* === チェックボックスのラベル(標準) ==================== */
#switchArea label {
  display        : block;               /* ボックス要素に変更 */
  box-sizing     : border-box;          /* 枠線を含んだサイズ */
  height         : 32px;                /* ボタンの高さ       */
  border         : 2px solid #999999;   /* 未選択タブのの枠線 */
  border-radius  : 16px;                /* 角丸               */
}

 /* === チェックボックスのラベル(ONのとき) ================ */
#switchArea input[type="checkbox"]:checked +label {
  border-color   : #78bd78;             /* 選択タブの枠線     */
}

 /* === 表示する文字(標準) ================================ */
#switchArea label span:after{
  content        : "OFF";               /* 表示する文字       */
  padding        : 0 0 0 19px;          /* 表示する位置       */
  color          : #999999;             /* 文字色             */
}

 /* === 表示する文字(ONのとき) ============================ */
#switchArea  input[type="checkbox"]:checked + label span:after{
  content        : "ON";                /* 表示する文字       */
  padding        : 0 19px 0 0;          /* 表示する位置       */
  color          : #78bd78;             /* 文字色             */
}

 /* === 丸部分のSTYLE(標準) =============================== */
#switchArea #swImg {
  position       : absolute;            /* 親要素からの相対位置*/
  width          : 24px;                /* 丸の横幅           */
  height         : 24px;                /* 丸の高さ           */
  background     : #999999;             /* カーソルタブの背景 */
  top            : 4px;                 /* 親要素からの位置   */
  left           : 4px;                 /* 親要素からの位置   */
  border-radius  : 12px;                /* 角丸               */
  transition     : .2s;                 /* 滑らか変化         */
}

 /* === 丸部分のSTYLE(ONのとき) =========================== */
#switchArea input[type="checkbox"]:checked ~ #swImg {
  transform      : translateX(37px);    /* 丸も右へ移動       */
  background     : #78bd78;             /* カーソルタブの背景 */
}