﻿/* [套用原則]

    <div class="form-check form-check-inline checkboxlist mx-auto">
        <asp:CheckBoxList ID="cbOOO" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal">
        </asp:CheckBoxList>
    </div>
*/ 


/* #region *************************************（ ckl-container ）**************************************/

/* ==================================================
   外層 container 控制水平滾動
====================================================== */
.ckl-container {
    display: flex !important;  
    flex-wrap: nowrap !important;   
    overflow-x: auto !important;    
    overflow-y: hidden !important; 

    padding-bottom: 0px !important;               /* 避免遮住選項 */
    scrollbar-width: thin !important;             /* Firefox */
    scrollbar-color: #e8e7e2 #f7f6f3 !important;  /* Firefox 滾動條顏色 */
}
/* #endregion */

/* #region *************************************（ ckl-list ）**************************************/

/* ========================================
   不可換行，不接受 RepeatColumns (綠色)
=========================================== */
.ckl-list {
    display: flex !important; 
    flex-wrap: nowrap !important; 
}

/* ==================
   選項和選項間距
===================== */
.ckl-list label {
    white-space: nowrap !important;
    margin-right: 8px !important;
    margin-top: 6px !important;   
}

/* ==================
   框框和文字間距
===================== */
.ckl-list input[type="checkbox"] {
    margin-right: 3px !important;
    margin-left: 1px !important;
    accent-color: #608287 !important;       /* 選定顏色 */
}
/* #endregion */

/* #region *************************************（ ckl-list-blue ）**************************************/

/* ========================================
   不可換行，不接受 RepeatColumns (藍色)
=========================================== */
.ckl-list-blue {
    display: flex !important; 
    flex-wrap: nowrap !important; 
}

/* ==================
   選項和選項間距
===================== */
.ckl-list-blue label {
    white-space: nowrap !important;
    margin-right: 8px !important;
    margin-top: 6px !important;   
}

/* ==================
   框框和文字間距
===================== */
.ckl-list-blue input[type="checkbox"] {
    margin-right: 3px !important;
    margin-left: 1px !important;
    accent-color: #5696c5 !important;       /* 選定顏色 */
}
/* #endregion */

/* #region *************************************（ ckl-list-repeat ）**************************************/

/* ==================
   選項和選項間距
===================== */
.ckl-list-repeat label {
    white-space: nowrap !important;
    margin-right: 8px !important;
    margin-top: 10px !important;
}

/* ==================
   框框和文字間距
===================== */
.ckl-list-repeat input[type="checkbox"] {
    margin-right: 3px !important;
    margin-left: 1px !important;
    accent-color: #608287 !important;      /* 選定顏色 */
}
/* #endregion */

/* #region *************************************（ ckl-list-repeat-blue ）**************************************/

/* ==================
   選項和選項間距
===================== */
.ckl-list-repeat-blue label {
    white-space: nowrap !important;
    margin-right: 8px !important;
    margin-top: 10px !important;
}

/* ==================
   框框和文字間距
===================== */
.ckl-list-repeat-blue input[type="checkbox"] {
    margin-right: 3px !important;
    margin-left: 1px !important;
    accent-color: #5696c5 !important;       /* 選定顏色 */
}
/* #endregion */

/* #region *************************************（ checkboxlist ）**************************************/

/* =============================
   偽 BS4 的 ckeckboxlist 風格
================================= */
.checkboxlist input[type="checkbox"] {
  margin-right: 0.3em !important;
  position: relative !important;
  top: 2px !important;
}

.checkboxlist label {
  margin-right: 0.8em !important;
  margin-bottom: 0 !important;
  display: inline-block !important;
}

/* =============================
   桌面版預設，不需要滾動
================================= */
.checkboxlist {
  white-space: nowrap !important;
  overflow-x: visible !important;
  overflow-y: hidden !important;  
  display: block !important;
}

/* =============================
   手機模式啟用 X 軸滾動（Y 軸不滾動）
================================= */
@media (max-width: 768px) {
  .checkboxlist {
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }
}
/* #endregion */

/* #region *************************************（ ckl-form-control ）**************************************/

.form-control.ckl-form-control {
    background-color:rgba(255, 255, 255, 0.00) !important;
    border:none !important;
    padding-left:0 !important;
}

.ckl-form-control label:not(:last-child) {
    margin-right: 8px !important;
}

/* =============================
   針對選項間的距離
================================= */
.ckl-form-control label {
    display: inline-block !important; 
    margin-right: 10px !important; 
}

/* =============================
   針對按鈕和文字間的距離
================================= */
.ckl-form-control input[type="radio"] {
    margin-right: 4px !important;
}
/* #endregion */

/* #region *************************************（ ckl-horizontal ）**************************************/

.ckl-horizontal input[type="checkbox"] {
  margin-right: 0.3em !important;
  position: relative !important;
  top: 2px !important;
}
.ckl-horizontal label {
  margin-right: 0.8em !important;
  margin-bottom: 0 !important;
  display: inline-block !important;
}

.ckl-horizontal {
  white-space: nowrap !important;
  overflow-x: visible !important;
  overflow-y: hidden !important;
  display: block !important;
}

@media (max-width: 768px) {
  .ckl-horizontal {
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }
}
/* #endregion */

/* #region *************************************（ horizontal-radio-list ）**************************************/

/* ========================================
   給 RadioButton 裡面的項目間距大一點
========================================== */
.horizontal-radio-list label {
    margin-right: 1rem !important;
}
/* #endregion */

/* #region *************************************（ large-checkbox ）**************************************/

/* ==================================================
   讓 Checkbox 框框比較大，調整倍率，1.5x 大小
====================================================== */
.large-checkbox input[type="checkbox"] {
    transform: scale(1.2) !important;  
    transform-origin: center !important;
    cursor: pointer !important;
}
/* #endregion */






























































