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

 
(61 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; }
  list-style-type: none;
+
ul.vertm_down li { background-color: #a7170f; }
  width: 190px;
+
ul.vertm_down a { display: block; color: #fffff9; }
  height: 90px;
+
ul.vertm_down ul li { background-color: #cccccc; text-align: left; }
  margin: 10px auto 150px;
+
ul.vertm_down ul a { color: #a7170f; }
  padding: 0;
+
ul.vertm_down a:hover { background-color: #025ba6; color: #fffff9; }
  background: #00aaee;
+
  border-bottom: 5px solid #006699;
+
  border-right: 5px solid #006699;
+
  border-radius: 3px 3px 0 0;
+
}
+
  
#dropmenu li {
+
ul.click_menu_checkbox input { display: none; }
 +
ul.click_menu_checkbox ul { display: none; }
 +
ul.click_menu_checkbox input:checked ~ ul { display: block; }
 +
 
 +
#css-slider {
 +
  width: 800px;
 +
  height: 500px;
 +
  overflow: hidden;
 +
}
 +
 +
.slide-item {
 +
  width: 800px;
 +
  height: 500px;
 +
  float: center;
 
   position: relative;
 
   position: relative;
  top:0%;
 
  width: 100%;
 
  margin: 0;
 
  padding: 0;
 
  text-align: center;
 
 
}
 
}
 +
 +
 +
.slider-wrapper {
 +
  width: 300%;
 +
  position: relative;
 +
  left: 0;
 +
  will-change: transform;
 +
  animation: slider 10s infinite;
 +
}
 +
 +
@keyframes slider {
 +
  0% { transform: translateX(0); }
 +
  33% { transform: translateX(-300px); }
 +
  66% { transform: translateX(-600px); }
 +
  100% { transform: translateX(0); }
 +
}
 +
  
#dropmenu li a {
+
img.n1 {
  display: block;
+
  vertical-align: middle;
  margin: 0;
+
  padding: 9px 0 9px;
+
  color: #ffffff;
+
  font-size: 12px;
+
  font-weight: bold;
+
  line-height: 1;
+
  border-top: 1px solid #ffffff;
+
  border-right: 0px solid #ffffff;
+
  text-decoration: none;
+
 
}
 
}
  
#dropmenu li ul {
+
img.n1 {
  list-style: none;
+
  vertical-align: middle;
  position: absolute;
+
  width: 190px;
+
  top: 0;
+
  left: 100%;
+
  margin: 0;
+
  padding: 0;
+
  border-radius: 0px 0px 3px 3px;
+
 
}
 
}
  
#dropmenu li ul li{
+
.photo-show {  
  overflow: hidden;
+
    margin: 30px auto; /*縦余白30pxは任意*/
  width: 100%;
+
    max-width: 90%;
  height: 0;
+
    position: relative;
  color: #ffffff;
+
  -moz-transition: .2s;
+
  -webkit-transition: .2s;
+
  -o-transition: .2s;
+
  -ms-transition: .2s;
+
  transition: .2s;
+
 
}
 
}
  
#dropmenu li ul li a{
+
.photo-show img {  
  padding: 9px 9px;
+
    animation: show 16s infinite;
  background: #00aaee;
+
    -webkit-animation: show 16s infinite;
  text-align: left;
+
    border-radius: 100%;
  font-size: 11px;
+
    height: auto;
  font-weight: normal;
+
    max-width: 100%;
 +
    opacity: 0;
 +
    position: absolute; /*画像を全て重ねる*/
 
}
 
}
  
#dropmenu li:hover > a{  
+
/*アニメーション*/
  background: #00aaee;
+
 
  color: #ffff00;
+
@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}
 
}
 
}
  
#dropmenu > li:hover > a{
+
/*各画像のアニメーションの開始時間をずらす*/
  border-radius: 3px 3px 0px 0px;  
+
 
 +
.photo-show img:nth-of-type(1) {
 +
    animation-delay: 0s;
 +
    -webkit-animation-delay: 0s;
 
}
 
}
  
#dropmenu li:hover ul li{
+
.photo-show img:nth-of-type(2) {
  overflow: visible;
+
    animation-delay: 4s;
  height: 30px;
+
    -webkit-animation-delay: 2s;
  border-bottom: 1px dotted #00aacc;
+
  border-left: 1px dotted #ffffff;
+
 
}
 
}
  
#dropmenu li:hover ul li:first-child{  
+
.photo-show img:nth-of-type(3) {
  border-top: 0;
+
    animation-delay: 8s;
 +
    -webkit-animation-delay: 4s;
 
}
 
}
#dropmenu li:hover ul li:last-child{
+
 
  border-bottom: 0;
+
.photo-show img:nth-of-type(4) {
 +
    animation-delay: 12s;
 +
    -webkit-animation-delay: 6s;
 
}
 
}
  
#dropmenu li:hover ul li:last-child a{  
+
.photo-show img:nth-of-type(5) {
  border-radius: 0 0 3px 3px;  
+
    animation-delay: 16s;
 +
    -webkit-animation-delay: 8s;
 +
}
 +
 
 +
.photo-show img:nth-of-type(6) {
 +
    animation-delay: 20s;
 +
    -webkit-animation-delay: 10s;
 +
}
 +
 
 +
.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