datamad2017/_sass/partials/_schedule.scss

197 lines
4.7 KiB
SCSS
Raw Normal View History

2014-08-15 16:02:40 +02:00
$speaker-image-size: 40px;
$schedule-border: 1px solid #e7e7e7;
$title-font-size: 25px;
$label-width: 100px;
$small-label-width: 80px;
2014-08-14 23:27:17 +02:00
.schedule {
.schedule-table {
margin-bottom: 90px;
@media (max-width: 767px) {
margin-bottom: 60px;
padding: 0;
}
}
.schedule-table-heading {
margin: 10px 0 20px;
text-align: left;
@media (max-width: 767px) {
text-align: center;
}
}
.timeslot {
background: #fff;
2014-08-15 16:02:40 +02:00
border-top: $schedule-border;
border-left: $schedule-border;
2014-08-14 23:27:17 +02:00
&:last-child {
2014-08-15 16:02:40 +02:00
border-bottom: $schedule-border;
2014-08-14 23:27:17 +02:00
}
}
2014-08-15 16:02:40 +02:00
.track-header {
2014-08-14 23:27:17 +02:00
z-index: 10;
transition: $base-transition;
&.sticky {
box-shadow: 0 0 5px rgba(0, 0, 0, .2), 0 1px 0 rgba(255, 255, 255, .15);
}
}
2014-08-15 16:02:40 +02:00
.track-header-label {
2014-08-14 23:27:17 +02:00
position: absolute;
padding: 10px 15px 20px;
2014-08-15 16:02:40 +02:00
width: $label-width;
2014-08-14 23:27:17 +02:00
text-align: left;
margin: 0;
2014-08-15 16:02:40 +02:00
font-size: $title-font-size;
2014-08-14 23:27:17 +02:00
line-height: 1;
@media (max-width: 767px) {
font-size: 18px;
2014-08-15 16:02:40 +02:00
width: $small-label-width;
2014-08-14 23:27:17 +02:00
}
span {
font-size: 20px;
@media (max-width: 767px) {
font-size: 14px;
}
}
}
.timeslot-label {
2014-08-15 16:02:40 +02:00
@extend .track-header-label;
2014-08-14 23:27:17 +02:00
position: relative;
float: left;
display: block;
transition: $base-transition;
font-size: 40px;
font-weight: $light;
@media (max-width: 767px) {
font-size: 28px;
}
}
.time-element {
position: relative;
height: 100%;
}
.timeslot-elements {
overflow: hidden;
2014-08-15 16:02:40 +02:00
margin-left: $label-width;
2014-08-14 23:27:17 +02:00
transition: $base-transition;
@media (max-width: 767px) {
display: block;
2014-08-15 16:02:40 +02:00
margin-left: $small-label-width;
2014-08-14 23:27:17 +02:00
}
}
.slot-title {
font-size: 22px;
font-weight: $regular;
margin: 0;
padding-right: 20px;
@media (max-width: 767px) {
font-size: 18px;
}
}
2014-08-15 16:02:40 +02:00
.track-header-title {
2014-08-14 23:27:17 +02:00
@extend .slot-title;
}
2014-08-15 16:02:40 +02:00
.track-header-slot {
2014-08-14 23:27:17 +02:00
padding: 10px 15px 10px;
text-align: left;
transition: $base-transition;
2014-08-15 16:02:40 +02:00
border-right: $schedule-border;
2014-08-14 23:27:17 +02:00
user-select: none;
@media (max-width: 767px) {
border-top: 0;
2014-08-15 16:02:40 +02:00
border-left: $schedule-border;
2014-08-14 23:27:17 +02:00
}
&:first-child {
2014-08-15 16:02:40 +02:00
border-left: $schedule-border;
2014-08-14 23:27:17 +02:00
@media (max-width: 767px) {
border-top: 0;
}
}
}
.slot {
2014-08-15 16:02:40 +02:00
@extend .track-header-slot;
2014-08-14 23:27:17 +02:00
padding: 0;
2014-08-15 16:02:40 +02:00
cursor: pointer;
2014-08-14 23:27:17 +02:00
@media (max-width: 767px) {
2014-08-15 16:02:40 +02:00
border-top: $schedule-border;
2014-08-14 23:27:17 +02:00
}
2014-08-15 16:02:40 +02:00
&.blank-col {
cursor: default;
}
&.service-slot {
@extend .blank-col;
min-height: 120px;
2014-08-14 23:27:17 +02:00
@media (max-width: 767px) {
2014-08-15 16:02:40 +02:00
min-height: 90px;
2014-08-14 23:27:17 +02:00
}
}
2014-08-15 16:02:40 +02:00
}
.color-line {
height: 5px;
position: absolute;
display: block;
width: 100%;
top: 0;
background: #ccc;
2014-08-14 23:27:17 +02:00
}
.slot-content {
padding: 20px 15px 30px;
background: #fff;
2014-08-15 16:02:40 +02:00
transform: translateY(0);
2014-08-14 23:27:17 +02:00
transition: $base-transition;
@media (max-width: 767px) {
padding-bottom: 20px;
border-right-width: 5px;
border-right-style: solid;
2014-08-15 16:02:40 +02:00
border-right-color: #ccc;
&:hover {
transform: translateY(0);
}
2014-08-14 23:27:17 +02:00
}
&:hover {
2014-08-15 16:02:40 +02:00
transform: translateY(5px);
2014-08-14 23:27:17 +02:00
}
}
.slot-language {
position: absolute;
font-size: 11px;
right: 15px;
top: 20px;
}
2014-08-15 16:02:40 +02:00
.slot-complexity {
font-size: 13px;
span {
color: #555;
}
}
2014-08-14 23:27:17 +02:00
ul {
list-style: none;
padding: 0;
2014-08-15 16:02:40 +02:00
margin-top: 15px;
2014-08-14 23:27:17 +02:00
}
li {
font-size: 16px;
margin-bottom: 5px;
@media (max-width: 767px) {
font-size: 14px;
}
}
.speaker-img {
2014-08-15 16:02:40 +02:00
width: $speaker-image-size;
height: $speaker-image-size;
2014-08-14 23:27:17 +02:00
border: 2px solid #fff;
position: absolute;
box-shadow: 0 1px 0 rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.2);
}
.speaker-name {
2014-08-15 16:02:40 +02:00
line-height: $speaker-image-size - 12;
margin-left: $speaker-image-size + 8;
2014-08-14 23:27:17 +02:00
}
.speaker-position {
color: #555;
display: block;
line-height: 1;
font-size: 12px;
margin-top: -5px;
}
}