Files
hudozka/assets/style/schedule.scss
T
tmshv 8784043f1d = schedule page added;
+ clients dir for browser code;
+ some models (course);
= other (main style, etc);
2014-03-18 23:16:45 +04:00

186 lines
3.8 KiB
SCSS

.schedule{
position: relative;
margin: 30px auto 0 auto;
table{
position: relative;
margin: 0 auto 0 auto;
border-spacing: 0px;
text-align: center;
td{
position: relative;
&:not(.group){
min-width: 150px;
/* width: 15%;*/
width: 150px;
padding: 8px 10px 8px;
vertical-align:baseline;
}
&.group{
min-width: 60px;
/* width: 5%;*/
width: 60px;
position: relative;
vertical-align:baseline;
p{
// position: absolute;
width:30px;
height: 30px;
left: 0;
right: 0;
margin: 7px auto 0 auto;
padding: 7px;
border: 1px solid #e8e8e8;
background-color: white;
border-radius: 50%;
font-size: 1.4em;
}
}
}
tr:nth-child(even) td.group p{
background-color: #f9f9fd;
}
}
thead{
animation-duration: 0.3s;
th{
font-weight: normal;
vertical-align: baseline;
height: 80px;
padding: 10px 0 0;
&.weekend{
color: #f52;
}
}
.date{
font-size: 1.5em;
}
.group{
color: #666;
}
}
tbody tr:nth-child(odd){
background-color: #f9f9fd;
}
.lesson{
font-size: 1.1em;
font-weight: bold;
}
.teacher{
font-style: italic;
}
p{
margin-bottom: 10px;
}
a{
color: black;
text-decoration: none;
border-bottom: 1px solid #ccc;
}
.current{
border-left: 2px solid #4b8ff3;
border-right: 2px solid #4b8ff3;
&.first{
border-radius: 15px 15px 0 0;
border-top: 2px solid #4b8ff3;
}
&.last{
border-radius: 0 0 15px 15px;
border-bottom: 2px solid #4b8ff3;
}
}
.canceled:before{
position: absolute;
content: "";
width:70%;
height: 100%;
top: 0;
left: 15%;
background-image: url(lesson-canceled.svg);
}
ul{
margin: 0px auto 30px auto;
text-align: center;
li{
display: inline-block;
padding: 5px 10px;
margin: 0 5px;
&.current{
color: #68aeff;
border: none;
font-weight: bold;
/* color: #555;*/
/* padding: 5px 15px;*/
/* border: 1px solid #4b8ff3;*/
/* border-radius: 100px;*/
}
}
a{
color: #3f9cea;
border-bottom: 1px dashed #ccc;
display: inline-block;
padding: 0px;
}
}
thead.fix{
position: fixed;
top: 0;
background-color: rgba(255, 255, 255, 0.96);
z-index: 100;
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
border-radius: 0 0 20px 20px;
.current{
border: none;
border-radius: 0px;
color: #3f9cea;
width: 155px;
}
th{
:not(.group){
min-width: 150px;
/* width: 15%;*/
width: 150px;
padding: 8px 10px 8px;
}
&.group{
width: 63px;
}
}
}
tbody.fix:before{
content: "";
display: block;
margin-top: 90px;
}
}