@import url(//fonts.googleapis.com/css?family=Asap:400,700); @import url(//fonts.googleapis.com/css?family=Inconsolata:400,700); * { margin: 0; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; } span.code { padding: 0 2px; background-color: rgba(255, 255, 255, 0.4); border-radius: 2px; } .block { padding: 80px 0; width: 100%; } .inner { max-width: 960px; padding: 0 20px; margin: 0 auto; } .clearfix:after { content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0; } .clearfix { display: inline-block; } html[xmlns] .clearfix { display: block; } * html .clearfix { height: 1%; } strong { font-weight: 700; } .transition(@props) { -webkit-transition: @props; -moz-transition: @props; -ms-transition: @props; -o-transition: @props; transition: @props; } // some colors @red: #cc0d00; @light-red: #cc0d00; @blue: #71bbd2; @dark-blue: #3883a3; @dark-green: #69a776; @light-green: #97ce7f; @dark-gray: #414141; @light-gray: #ebebeb; @yellow: #ddca9a; @light-yellow: #eedd00; @light-yellow2: #ffffbb; .bg-gray { background-color: @dark-gray; } .bg-red { background-color: @red; a { color: @red; &:hover { background-color: lighten(@red, 20%); color: #f5cfcc; } } } .bg-blue { background-color: @blue; } .bg-green { background-color: @light-green; } .bg-yellow { background-color: @yellow; } .center { text-align: center; } // structure .header { padding: 30px 0; } // @light-gray: #dedede; @black-text: #212121; @trans-white: rgba(255, 255, 255, 0.5); @time: 0.5s; @time-quick: 0.25s; .noselect { -webkit-user-select: none; /* Chrome/Safari */ -moz-user-select: none; /* Firefox */ -ms-user-select: none; /* IE10+ */ } .vertical-padding(@size: 5px) { padding-top: @size; padding-bottom: @size; } #mini-clndr { font-family: Asap, Helvetica, Arial; margin: 0 auto 5px auto; width: 100%;/*レスポンシブ*/ /*width: 189px;*/ line-height: 1.7; } #mini-clndr .clndr { overflow: hidden; border-bottom: 1px solid @light-gray; .controls { background-color: #ffffff; color: #666666; .clndr-previous-button, .clndr-next-button { width: 15%; .vertical-padding; display: inline-block; text-align: center; cursor: pointer; .noselect; .transition(background-color @time); &:hover { background-color: #666666; } } .month { width: 70%; .vertical-padding; display: inline-block; text-align: center; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; } } .days-container { position: relative; /*width: 189px;*/ height: 250px;/*高さはpxで必ず指定*/ width: 100%; border-left: 1px solid @light-gray; .clearfix; .days { position: absolute; left: 0; /*width: 189px; height: 250px;*/ width: 100%; .transition(left @time); background-color: #ffffff; .day, .empty { width: 14.2%; display: inline-block; .vertical-padding(8px); font-size: 12px; // font-weight: 700; text-align: center; color: @black-text; border-right: 1px solid @light-gray; border-bottom: 1px solid @light-gray; &.calendar-dow-0 { background-color: #fff0f0; } &.calendar-dow-6 { background-color: #f0f6ff; } &.regularHoliday { background-color: lighten(@light-red, 50%); } &.event { background-color: lighten(@yellow, 10%); .transition(background-color @time); cursor: pointer; &:hover { background-color: lighten(@yellow, 20%); } } &.adjacent-month { color: rgba(0, 0, 0, 0.3); } &.today { color: @red; background-color: @light-yellow2; } } .empty { height: 27px; vertical-align: bottom; } .headers/*曜日背景*/ { background-color: #dddddd; .vertical-padding; .day-header { width: 14%; display: inline-block; text-align: center; color: #666666; font-size: 12px; } } } .events { position: absolute; /*left: 300px;*/ left: 100%; width: 100%; height: 102%; .transition(left @time); background-color: #f8f8f8; .headers { position: relative; } .event-header { width: 100%; background-color: @yellow; .vertical-padding; text-align: center; color: #666666; font-size: 110%; } .x-button { position: absolute; font-size: 80%; top: 7px; left: 20px; cursor: pointer; .transition(color @time-quick); &:hover { color: white; } } .events-list { overflow: scroll; height: 93%; .event { .vertical-padding(4px); padding-left: 10px; text-align: left; border-bottom: 1px solid #cccccc; .transition(background-color @time-quick); font-size: 100%; &:hover { background-color: lighten(@light-gray, 4%); } a { position: relative; font-size: 100%; /* font-weight: 700;*/ /* letter-spacing: 1px;*/ background-color: transparent; color: @black-text; text-decoration: none; .transition(color @time-quick); &:hover { background-color: transparent; color: #668800; } } } } } &.show-events { .days { left: -300px; } .events { left: 0; } } } }