forked from rebillar/site-accueil-insa
Improved planning css
This commit is contained in:
parent
b04ed1b6cd
commit
57b6ee64a1
2 changed files with 11 additions and 5 deletions
|
@ -11,9 +11,15 @@ General
|
||||||
|
|
||||||
#table_planning th {
|
#table_planning th {
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 10px;
|
border-radius: 5px;
|
||||||
background: #414141;
|
background: #414141;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
width: 12.5%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#table_planning td {
|
||||||
|
padding: 0;
|
||||||
|
margin: 0 0 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.horaires {
|
.horaires {
|
||||||
|
@ -25,7 +31,7 @@ General
|
||||||
}
|
}
|
||||||
|
|
||||||
.event {
|
.event {
|
||||||
border-radius: 20px;
|
border-radius: 10px;
|
||||||
border: none;
|
border: none;
|
||||||
color: white;
|
color: white;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
|
|
@ -12,7 +12,7 @@ $(document).ready(function () {
|
||||||
}
|
}
|
||||||
/* Set style for currently selected items */
|
/* Set style for currently selected items */
|
||||||
current = this.className.split(" ")[1];
|
current = this.className.split(" ")[1];
|
||||||
setEventShadow(current, "0px 0px 10px #000");
|
setEventShadow(current, "0px 0px 10px #ee293d");
|
||||||
/* Load info box text and smoothly scroll to it */
|
/* Load info box text and smoothly scroll to it */
|
||||||
$("#infoBox").load("includes/planning_events/" + current + ".html");
|
$("#infoBox").load("includes/planning_events/" + current + ".html");
|
||||||
$('html, body').animate({
|
$('html, body').animate({
|
||||||
|
@ -26,7 +26,7 @@ $(document).ready(function () {
|
||||||
$(".event").hover(function () {
|
$(".event").hover(function () {
|
||||||
var element = this.className.split(" ")[1];
|
var element = this.className.split(" ")[1];
|
||||||
if (element != current) {
|
if (element != current) {
|
||||||
setEventShadow(element, "0px 0px 5px #aaa");
|
setEventShadow(element, "0px 0px 10px #1a5dad");
|
||||||
}
|
}
|
||||||
}, function () {
|
}, function () {
|
||||||
var element = this.className.split(" ")[1];
|
var element = this.className.split(" ")[1];
|
||||||
|
@ -42,7 +42,7 @@ $(document).ready(function () {
|
||||||
classes = document.getElementsByClassName(eventName);
|
classes = document.getElementsByClassName(eventName);
|
||||||
for (var i = 0; i < classes.length; i++) {
|
for (var i = 0; i < classes.length; i++) {
|
||||||
classes[i].style.boxShadow = shadow;
|
classes[i].style.boxShadow = shadow;
|
||||||
|
classes[i].style.textShadow = shadow;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue