「テンプレート:攻略TOPメニュー/styles.css」の版間の差分

提供:ドラゴンボール Sparking! ZERO 攻略Wiki(スパキンゼロ)
移動先:案内検索
(ページの作成:「 .container { display: flex; flex-wrap: wrap; margin: 10px 0; } .column { flex: 1 1 calc(50% - 10px); min-width: 300px; box-sizing: border-box; padding: 10px; border-radius: 8px; } .h2_blue { font-size: 1em; color: #fcfcfc; text-shadow: 0 0 10px #19120c, 0 0 2px #19120c, 0 0 1px #19120c; background: linear-gradient(18deg, #1a170f, #aa926c); padding: 8px 15px !important; margin: 20px 0 15px 0 !important…」)
 
編集の要約なし
 
(他の1人の利用者による、間の1版が非表示)
1行目: 1行目:
/*TOPメニュー用CSS*/
   .container {
   .container {
     display: flex;
     display: flex;
     flex-wrap: wrap;
     flex-wrap: wrap;
     margin: 10px 0;
     margin: 10px 0;
    background: #ffffff; /* フォールバック用の白背景 */
background: rgba(255, 255, 255, 0); /* 透明な背景 */
   }
   }
   .column {
   .column {
14行目: 17行目:
     font-size: 1em;
     font-size: 1em;
     color: #fcfcfc;
     color: #fcfcfc;
     text-shadow: 0 0 10px #19120c, 0 0 2px #19120c, 0 0 1px #19120c;
     text-shadow: 0 0 10px #084f86, 0 0 2px #084f86, 0 0 1px #084f86;
     background: linear-gradient(18deg, #1a170f, #aa926c);
     background: linear-gradient(18deg, #56b4e6, #0273cf);
     padding: 8px 15px !important;
     padding: 10px 15px !important;
     margin: 20px 0 15px 0 !important;
     margin: 2rem 0 15px 0 !important;
     border-radius: 3px;
     border-radius: 3px;
     font-weight: 700;
     font-weight: 700;
   }
   }
 
  .h2_green {
    font-size: 1em;
    color: #fcfcfc;
    text-shadow: 0 0 10px #084f86, 0 0 2px #084f86, 0 0 1px #084f86;
    background: linear-gradient(18deg, #5b9485, #2e4a43);
    padding: 10px 15px !important;
    margin: 2rem 0 15px 0 !important;
    border-radius: 3px;
    font-weight: 700;
  }
.h2_gray{
    font-size:1em;
    color: #fcfcfc;
    background: linear-gradient(to right, #879294, #c0d5e1);
    padding: 6px 15px !important;
    margin: 2rem 0 15px 0 !important;
    font-weight: 700;
}
   .menu-container {
   .menu-container {
     display: flex;
     display: flex;
  justify-content: center;
    justify-content: space-between;
     flex-wrap: wrap;
     flex-wrap: wrap;
     gap: 5px;
     gap: 5px;
32行目: 52行目:
     margin-bottom: 3px;
     margin-bottom: 3px;
   }
   }
  .btn {
 
display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 40px;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    cursor: pointer;
    background-image: none;
    border: 1px solid #97793f !important;
    background: #f0eadc;
    box-shadow: 0px 1px 2px #b6ab97;
    border-radius: 4px;
    box-sizing: border-box;
  }
 
/*
  span.btn.btn-default >a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
*/
.menulist .btn-default {
.menulist .btn-default {
   display: inline-flex;
   display: inline-flex;
80行目: 71行目:
     flex: 0 1 100%;
     flex: 0 1 100%;
   }
   }
.h2_gray{
 
    font-size:1em;
    color: #fcfcfc;
    background: linear-gradient(to right, #879294, #c0d5e1);
        padding: 6px 15px !important;
    margin: 0 0 15px 0 !important;
    font-weight: 700;
}
  .h2_blue2_bg {
  }


   @media (max-width: 768px) {
   @media (max-width: 768px) {
     .column {
     .column {
       flex: 1 1 100%;
       flex: 1 1 100%;
      padding:1px;
     }
     }
     .menulist {
     .menulist {
156行目: 139行目:
             opacity: 0.8;
             opacity: 0.8;
         }
         }
/*--------------TOPページdivメニュー-------------------*/
.top-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  margin: -1px;
}
.menu-item {
  box-sizing: border-box;
  border: 1px solid gray;
  border-radius: 3px;
  margin: 1px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  text-align: center;
  font-size: 0.9em;
}
.menu-item-row-5 { width: calc(20% - 2px); }/*5列*/
.menu-item-row-4 { width: calc(25% - 2px); }/*4列*/
.menu-item-row-3 { width: calc(33% - 2px); }/*3列*/
.menu-item-row-2 { width: calc(50% - 2px); }/*2列*/
.menu-item-row-1 { width: calc(100% - 2px); }/*1列*/
.menu-item-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px;
  height: 100%;
}
.menu-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 5px;
}
.menu-item-text {
  flex-grow: 1;
  text-align: center;
}
.menu-item-text a {
  text-decoration: none;
}
.menu-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.1);
  opacity: 0;
  transition: opacity 0.3s;
}
.menu-item:hover::after {
  opacity: 1;
}

2024年10月15日 (火) 23:42時点における最新版

/*TOPメニュー用CSS*/
  .container {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 0;
    background: #ffffff; /* フォールバック用の白背景 */
background: rgba(255, 255, 255, 0); /* 透明な背景 */
  }
  .column {
    flex: 1 1 calc(50% - 10px);
    min-width: 300px;
    box-sizing: border-box;
    padding: 10px;
    border-radius: 8px;
  }
  .h2_blue {
    font-size: 1em;
    color: #fcfcfc;
    text-shadow: 0 0 10px #084f86, 0 0 2px #084f86, 0 0 1px #084f86;
    background: linear-gradient(18deg, #56b4e6, #0273cf);
    padding: 10px 15px !important;
    margin: 2rem 0 15px 0 !important;
    border-radius: 3px;
    font-weight: 700;
  }
  .h2_green {
    font-size: 1em;
    color: #fcfcfc;
    text-shadow: 0 0 10px #084f86, 0 0 2px #084f86, 0 0 1px #084f86;
    background: linear-gradient(18deg, #5b9485, #2e4a43);
    padding: 10px 15px !important;
    margin: 2rem 0 15px 0 !important;
    border-radius: 3px;
    font-weight: 700;
  }
.h2_gray{
    font-size:1em;
    color: #fcfcfc;
    background: linear-gradient(to right, #879294, #c0d5e1);
    padding: 6px 15px !important;
    margin: 2rem 0 15px 0 !important;
    font-weight: 700;
}
  .menu-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px;
  }
  .menulist {
    flex: 0 0 calc(32% - 5px);
    margin-bottom: 3px;
  }

.menulist .btn-default {
  display: inline-flex;
  align-items: center;
  margin: 5px auto;
  text-decoration: none;
  color: inherit;
    width: 100%;
    height: 100%;
}

.menulist .btn-default img {
  margin-right: 5px;
}


  .column2{
    flex: 0 1 100%;
  }


  @media (max-width: 768px) {
    .column {
      flex: 1 1 100%;
      padding:1px;
    }
    .menulist {
      flex: 0 0 100%;
    }
  .menulist {
    flex: 0 0 calc(32% - 5px);
    margin-bottom: 3px;
  }
  }
  
/*スライダー*/
* {
  box-sizing: border-box;
  list-style: none;
  padding: 0;
  margin: 0;
}
        /* スライドする要素 */
        .content {
            width: 100px;
            height: 100px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        .content img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        /* スライドレールの枠 */
        .wrap {
            overflow: hidden;
            display: flex;
            align-items: center;
            height: 120px;
            width: 420px;
            margin: auto;
        }
        /* content4つをまとめたスライドブロック */
        .slideshow {
            display: flex;
            animation: loop-slide 15s infinite linear 1s both;
        }
        @keyframes loop-slide {
            from { transform: translateX(0); }
            to { transform: translateX(-100%); }
        }
        /* タッチデバイスでスクロールを一時停止 */
        .slide-paused:active .slideshow {
            animation-play-state: paused;
        }
        /* タップ時の装飾 */
        .content-hover {
            transition: all 0.2s;
            margin-right: 5px;
        }
        .content-hover:active {
            transform: scale(0.95);
            opacity: 0.8;
        }
/*--------------TOPページdivメニュー-------------------*/
.top-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  margin: -1px;
}
.menu-item {
  box-sizing: border-box;
  border: 1px solid gray;
  border-radius: 3px;
  margin: 1px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  text-align: center;
  font-size: 0.9em;
}
.menu-item-row-5 { width: calc(20% - 2px); }/*5列*/
.menu-item-row-4 { width: calc(25% - 2px); }/*4列*/
.menu-item-row-3 { width: calc(33% - 2px); }/*3列*/
.menu-item-row-2 { width: calc(50% - 2px); }/*2列*/
.menu-item-row-1 { width: calc(100% - 2px); }/*1列*/
.menu-item-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px;
  height: 100%;
}
.menu-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 5px;
}
.menu-item-text {
  flex-grow: 1;
  text-align: center;
}
.menu-item-text a {

  text-decoration: none;
}
.menu-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.1);
  opacity: 0;
  transition: opacity 0.3s;
}
.menu-item:hover::after {
  opacity: 1;
}