Difference between revisions of "Template:TokyoTech/css/main"

 
(64 intermediate revisions by the same user not shown)
Line 30: Line 30:
 
/* End extract */
 
/* End extract */
 
html,body{font-family:Verdana,sans-serif;font-size:15px;line-height:1.5}html{overflow-x:hidden}
 
html,body{font-family:Verdana,sans-serif;font-size:15px;line-height:1.5}html{overflow-x:hidden}
h1{font-size:36px}h2{font-size:30px}h3{font-size:24px}h4{font-size:20px}h5{font-size:18px}h6{font-size:16px}.w3-serif{font-family:serif}
+
h1{font-size:32px}h2{font-size:28px}h3{font-size:26px}h4{font-size:24px}h5{font-size:20px}h6{font-size:16px}.w3-serif{font-family:serif}
h1,h2,h3,h4,h5,h6{font-family:"Segoe UI",Arial,sans-serif;font-weight:400;margin:10px 0}.w3-wide{letter-spacing:4px}
+
h1,h2,h3,h4,h5,h6{font-family:"Segoe UI",Arial,sans-serif;font-weight:400;margin:10px 0;line-height: 150%}.w3-wide{letter-spacing:4px}
 
hr{border:0;border-top:1px solid #eee;margin:20px 0}
 
hr{border:0;border-top:1px solid #eee;margin:20px 0}
 
.w3-image{max-width:100%;height:auto}img{margin-bottom:-5px}a{color:inherit}
 
.w3-image{max-width:100%;height:auto}img{margin-bottom:-5px}a{color:inherit}
Line 40: Line 40:
 
.w3-table td,.w3-table th,.w3-table-all td,.w3-table-all th{padding:8px 8px;display:table-cell;text-align:left;vertical-align:top}
 
.w3-table td,.w3-table th,.w3-table-all td,.w3-table-all th{padding:8px 8px;display:table-cell;text-align:left;vertical-align:top}
 
.w3-table th:first-child,.w3-table td:first-child,.w3-table-all th:first-child,.w3-table-all td:first-child{padding-left:16px}
 
.w3-table th:first-child,.w3-table td:first-child,.w3-table-all th:first-child,.w3-table-all td:first-child{padding-left:16px}
.w3-btn,.w3-button{border:none;display:inline-block;outline:0;padding:8px 16px;vertical-align:middle;overflow:hidden;text-decoration:none;color:inherit;background-color:inherit;text-align:center;cursor:pointer;white-space:nowrap}
+
.w3-btn,.w3-button{border:none;display:inline-block;outline:0;padding:8px 16px;vertical-align:middle;overflow:hidden;text-decoration:none;color:inherit;background-color:inherit;text-align:center;cursor:pointer;white-space:nowrap;color: #fff}
 
.w3-btn:hover{box-shadow:0 8px 16px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19)}
 
.w3-btn:hover{box-shadow:0 8px 16px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19)}
 
.w3-btn,.w3-button{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}   
 
.w3-btn,.w3-button{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}   
Line 88: Line 88:
 
.w3-hide{display:none!important}.w3-show-block,.w3-show{display:block!important}.w3-show-inline-block{display:inline-block!important}
 
.w3-hide{display:none!important}.w3-show-block,.w3-show{display:block!important}.w3-show-inline-block{display:inline-block!important}
 
@media (max-width:600px){.w3-modal-content{margin:0 10px;width:auto!important}.w3-modal{padding-top:30px}
 
@media (max-width:600px){.w3-modal-content{margin:0 10px;width:auto!important}.w3-modal{padding-top:30px}
.w3-dropdown-hover.w3-mobile .w3-dropdown-content,.w3-dropdown-click.w3-mobile .w3-dropdown-content{position:relative}
+
.w3-dropdown-hover.w3-mobile .w3-dropdown-content,.w3-dropdown-click.w3-mobile .w3-dropdown-content{position:relative}
 
.w3-hide-small{display:none!important}.w3-mobile{display:block;width:100%!important}.w3-bar-item.w3-mobile,.w3-dropdown-hover.w3-mobile,.w3-dropdown-click.w3-mobile{text-align:center}
 
.w3-hide-small{display:none!important}.w3-mobile{display:block;width:100%!important}.w3-bar-item.w3-mobile,.w3-dropdown-hover.w3-mobile,.w3-dropdown-click.w3-mobile{text-align:center}
 
.w3-dropdown-hover.w3-mobile,.w3-dropdown-hover.w3-mobile .w3-btn,.w3-dropdown-hover.w3-mobile .w3-button,.w3-dropdown-click.w3-mobile,.w3-dropdown-click.w3-mobile .w3-btn,.w3-dropdown-click.w3-mobile .w3-button{width:100%}}
 
.w3-dropdown-hover.w3-mobile,.w3-dropdown-hover.w3-mobile .w3-btn,.w3-dropdown-hover.w3-mobile .w3-button,.w3-dropdown-click.w3-mobile,.w3-dropdown-click.w3-mobile .w3-btn,.w3-dropdown-click.w3-mobile .w3-button{width:100%}}
 +
 
@media (max-width:768px){.w3-modal-content{width:500px}.w3-modal{padding-top:50px}}
 
@media (max-width:768px){.w3-modal-content{width:500px}.w3-modal{padding-top:50px}}
 
@media (min-width:993px){.w3-modal-content{width:900px}.w3-hide-large{display:none!important}.w3-sidebar.w3-collapse{display:block!important}}
 
@media (min-width:993px){.w3-modal-content{width:900px}.w3-hide-large{display:none!important}.w3-sidebar.w3-collapse{display:block!important}}
Line 213: Line 214:
 
.w3-border-grey,.w3-hover-border-grey:hover,.w3-border-gray,.w3-hover-border-gray:hover{border-color:#bbb!important}
 
.w3-border-grey,.w3-hover-border-grey:hover,.w3-border-gray,.w3-hover-border-gray:hover{border-color:#bbb!important}
  
.dropmenu{
+
ul.vertm_down { width: 10em; text-align: center; }
      *zoom: 1;
+
ul.vertm_down li { background-color: #a7170f; }
      list-style-type: none;
+
ul.vertm_down a { display: block; color: #fffff9; }
      width: 960px;
+
ul.vertm_down ul li { background-color: #cccccc; text-align: left; }
      margin: 50px auto 30px;
+
ul.vertm_down ul a { color: #a7170f; }
      padding-left: 50px;
+
ul.vertm_down a:hover { background-color: #025ba6; color: #fffff9; }
  }
+
    .dropmenu:before, .dropmenu:after{
+
          content: "";
+
          display: table;
+
  }
+
  .dropmenu:after{
+
        clear: both;
+
  }
+
  .dropmenu li{
+
        position: relative;
+
        width: 20%;
+
        float: left;
+
        margin: 0;
+
        padding: 0px;
+
        text-align: center;
+
  }
+
<!-- padding: 20px-->
+
  
  .dropmenu li a{
+
ul.click_menu_checkbox input { display: none; }
        display: block;
+
ul.click_menu_checkbox ul { display: none; }
        margin: 0;
+
ul.click_menu_checkbox input:checked ~ ul { display: block; }
        padding: 10px 0 10px;
+
        background: #a7170f;
+
        color: #ffffff;
+
        font-size: 40px;
+
        line-height: 1;
+
        text-decoration: none;
+
  }
+
.dropmenu li ul{
+
          list-style: none;
+
          position: absolute;
+
          z-index: 9999;
+
          top: 100%;
+
          left: 0;
+
          margin: 0;
+
          padding: 0;
+
  }
+
  .dropmenu li ul li{
+
          width: 100%;
+
  }
+
  .dropmenu li ul li a{
+
        padding: 13px 15px;
+
        border-top: 1px solid #a7170f;
+
        background: #a7170f;
+
        text-align: left;
+
  }
+
  .dropmenu li:hover > a{
+
        background: #a7170f;
+
  }
+
  .dropmenu li a:hover{
+
        background: #a7170f;
+
  }
+
  
#normal li ul{
+
#css-slider {
        display: none;
+
  width: 800px;
  }
+
  height: 500px;
  #normal li:hover ul{
+
        display: block;
+
  }
+
 
+
#contents {
+
 
   overflow: hidden;
 
   overflow: hidden;
  width: 750px;
 
  height: 300px;
 
  margin: 0 auto;
 
  padding: 0;
 
  box-sizing: border-box;
 
  display: flex;
 
 
}
 
}
#nav {
+
   width: 150px;
+
.slide-item {
   margin: 0;
+
   width: 800px;
   padding: 0;
+
  height: 500px;
 +
   float: center;
 +
   position: relative;
 
}
 
}
#nav li {
+
 +
 +
.slider-wrapper {
 +
  width: 300%;
 
   position: relative;
 
   position: relative;
   width: 150px;
+
   left: 0;
   height: 40px;
+
   will-change: transform;
 +
  animation: slider 10s infinite;
 
}
 
}
#nav > li {
+
   border-bottom: none;
+
@keyframes slider {
 +
   0% { transform: translateX(0); }
 +
  33% { transform: translateX(-300px); }
 +
  66% { transform: translateX(-600px); }
 +
  100% { transform: translateX(0); }
 
}
 
}
#nav li:last-child {
+
 
  border-bottom: none;
+
 
 +
img.n1 {
 +
  vertical-align: middle;
 
}
 
}
#nav li:hover > ul > li {
+
 
  border-bottom: none;
+
img.n1 {
 +
  vertical-align: middle;
 
}
 
}
#nav li > ul > li:last-child {
+
 
  border-bottom: none;
+
.photo-show {  
 +
    margin: 30px auto; /*縦余白30pxは任意*/
 +
    max-width: 90%;
 +
    position: relative;
 
}
 
}
#nav li a {
+
 
  display: block;
+
.photo-show img {  
  width: 150px;
+
    animation: show 16s infinite;
  height: 40px;
+
    -webkit-animation: show 16s infinite;
  color: #fff;
+
    border-radius: 100%;
  font-size: 14px;
+
    height: auto;
  line-height: 2.8;
+
    max-width: 100%;
  padding: 0 5px;
+
    opacity: 0;
  background: #9fb7d4;
+
    position: absolute; /*画像を全て重ねる*/
  border-bottom: 1px solid #fff;
+
  box-sizing: border-box;
+
  text-decoration: none;
+
  transition: 0.5s;
+
 
}
 
}
#nav li a:hover {
+
 
  color: #fff;
+
/*アニメーション*/
  background: #afc6e2;
+
 
 +
@keyframes show {
 +
    0% {opacity:0}
 +
    5% {opacity:1}
 +
    10% {opacity:1}
 +
    20% {opacity:0}
 +
}
 +
 
 +
@-webkit-keyframes show {
 +
    0% {opacity:0}
 +
    5% {opacity:1}
 +
    10% {opacity:1}
 +
    20% {opacity:0}
 
}
 
}
#nav > li:hover > a {
+
 
  background: #afc6e2;
+
/*各画像のアニメーションの開始時間をずらす*/
  transition: 0.5s;
+
 
 +
.photo-show img:nth-of-type(1) {
 +
    animation-delay: 0s;
 +
    -webkit-animation-delay: 0s;
 
}
 
}
#nav > li:hover li:hover > a {
+
 
  background: #afc6e2;
+
.photo-show img:nth-of-type(2) {
 +
    animation-delay: 4s;
 +
    -webkit-animation-delay: 2s;
 
}
 
}
#nav li:hover > ul > li {/*子・孫*/
+
 
  overflow: visible;
+
.photo-show img:nth-of-type(3) {
  top: -40px;
+
    animation-delay: 8s;
  left: 110px;
+
    -webkit-animation-delay: 4s;
  height: 40px;
+
 
}
 
}
#nav li ul li {/*子・孫*/
+
 
  overflow: hidden;
+
.photo-show img:nth-of-type(4) {
  height: 0;
+
    animation-delay: 12s;
  left: 110px;
+
    -webkit-animation-delay: 6s;
  list-style: none;
+
  transition: 0.2s;
+
 
}
 
}
#nav li ul li a {
+
 
  background: #9fb7d4;
+
.photo-show img:nth-of-type(5) {
  transition: 0.5s;
+
    animation-delay: 16s;
 +
    -webkit-animation-delay: 8s;
 
}
 
}
#nav li ul:before {/*孫*/
+
 
  position: absolute;
+
.photo-show img:nth-of-type(6) {
  content: "";
+
    animation-delay: 20s;
  top: 14px;
+
    -webkit-animation-delay: 10s;
  left: 140px;
+
  border: 5px solid transparent;
+
  border-left: 5px solid #fff;
+
 
}
 
}
#nav li:hover ul li ul li:hover > a {/**/
+
 
   background: #afc6e2;
+
.photo-show img:nth-of-type(7) {
 +
    animation-delay: 24s;
 +
    -webkit-animation-delay: 12s;
 +
}
 +
 
 +
.photo-show img:nth-of-type(8) {
 +
    animation-delay: 28s;
 +
    -webkit-animation-delay: 14s;
 +
}
 +
 
 +
.photo-show img:nth-of-type(9) {
 +
    animation-delay: 32s;
 +
    -webkit-animation-delay: 16s;
 +
}
 +
 
 +
.photo-show img:nth-of-type(10) {
 +
    animation-delay: 36s;
 +
    -webkit-animation-delay: 18s;
 +
}
 +
 
 +
.photo-show img:nth-of-type(12) {
 +
    animation-delay: 40s;
 +
    -webkit-animation-delay: 20s;
 +
}
 +
 
 +
.photo-show img:nth-of-type(13) {
 +
    animation-delay: 44s;
 +
    -webkit-animation-delay: 22s;
 +
}
 +
 
 +
.photo-show img:nth-of-type(14) {
 +
    animation-delay: 48s;
 +
    -webkit-animation-delay: 24s;
 +
}
 +
 
 +
.photo-show img:nth-of-type(15) {
 +
    animation-delay: 52s;
 +
    -webkit-animation-delay: 26s;
 +
}
 +
 
 +
.photo-show img:nth-of-type(16) {
 +
    animation-delay: 56s;
 +
    -webkit-animation-delay: 28s;
 +
}
 +
 
 +
.photo-show img:nth-of-type(17) {
 +
    animation-delay: 60s;
 +
    -webkit-animation-delay: 30s;
 +
}
 +
 
 +
.photo-show img:nth-of-type(18) {
 +
    animation-delay: 64s;
 +
    -webkit-animation-delay: 32s;
 +
}
 +
 
 +
.photo-show img:nth-of-type(19) {
 +
    animation-delay: 68s;
 +
    -webkit-animation-delay: 34s;
 +
}
 +
 
 +
.photo-show img:nth-of-type(20) {
 +
    animation-delay: 72s;
 +
    -webkit-animation-delay: 36s;
 +
}
 +
 
 +
.photo-show img:nth-of-type(21) {
 +
    animation-delay: 76s;
 +
    -webkit-animation-delay: 38s;
 +
}
 +
 
 +
.photo-show img:nth-of-type(22) {
 +
    animation-delay: 80s;
 +
    -webkit-animation-delay: 40s;
 +
}
 +
 
 +
/*マウスが画像に重なった際、動きを止めて四角くする*/
 +
 
 +
.photo-show img {
 +
    transition: 0.2s;
 +
    -webkit-transition: 0.2s;
 +
}
 +
 
 +
.photo-show:hover img {
 +
    animation-play-state: paused;
 +
    -webkit-animation-play-state: paused;
 +
    border-radius: 0;
 +
}
 +
 
 +
 
 +
.scale img {
 +
    -moz-transition: -moz-transform 0.5s linear;
 +
    -webkit-transition: -webkit-transform 0.5s linear;
 +
    -o-transition: -o-transform 0.5s linear;
 +
    -ms-transition: -ms-transform 0.5s linear;
 +
    transition: transform 0.5s linear;
 +
}
 +
.scale img:hover {
 +
    -webkit-transform: scale();
 +
    -moz-transform: scale(1.2);
 +
    -o-transform: scale(1.2);
 +
    -ms-transform: scale(1.2);
 +
    transform: scale(1.2);
 +
}
 +
 
 +
#loader-bg {
 +
  display: none;
 +
  position: fixed;
 +
  width: 100%;
 +
  height: 100%;
 +
  top: 0px;
 +
  left: 0px;
 +
   background: #fff;
 +
  z-index: 1;
 +
}
 +
#loader {
 +
  display: none;
 +
  position: fixed;
 +
  top: 50%;
 +
  left: 50%;
 +
  width: 300px;
 +
  height: 300px;
 +
  margin-top:-200px;
 +
  margin-left:-200px
 +
  text-align: center;
 +
  color: #333333;
 +
  z-index: 2;
 
}
 
}
  

Latest revision as of 11:44, 1 November 2017