Skip to content

Instantly share code, notes, and snippets.

@usainicola
Created June 26, 2018 08:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save usainicola/b64592e912723f974f347552be930364 to your computer and use it in GitHub Desktop.
Save usainicola/b64592e912723f974f347552be930364 to your computer and use it in GitHub Desktop.
.cControls {
display: flex;
justify-content: space-between;
align-items: center;
margin: 20px 0;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
#calendario_prezzi_output {
display: flex;
flex-wrap: wrap;
margin-right: -5px;
margin-bottom: -5px;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
#calendario_prezzi_output * {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
#calendario_prezzi_output > div.monthContainer {
width: calc(25% - 5px);
margin-right: 5px;
margin-bottom: 5px;
min-width: 190px;
flex-grow: 1;
}
#calendario_prezzi_output > div.monthContainer table.calendar {
font-size: 10px;
color: white;
border-collapse: separate;
empty-cells: show;
background-color: #555;
width: 100%;
}
#calendario_prezzi_output > div.monthContainer table.calendar td,
#calendario_prezzi_output > div.monthContainer table.calendar th {
border: 1px solid transparent;
padding: 4px;
text-align: center;
vertical-align: middle;
}
#calendario_prezzi_output > div.monthContainer table.calendar td:not(.days):not(.empty),
#calendario_prezzi_output > div.monthContainer table.calendar th:not(.days):not(.empty) {
cursor: pointer;
}
#calendario_prezzi_output > div.monthContainer table.calendar td.filled:hover {
background-color: green;
}
#calendario_prezzi_output > div.monthContainer table.calendar td.filled:active {
background-color: rgba(255,255,255,0.5);
}
#calendario_prezzi_output > div.monthContainer table.calendar td[data-price]:not([data-price=""]) {
background-color: yellow;
color: black;
}
#calendario_prezzi_output > div.monthContainer table.calendar td.filled[data-price]:not([data-price=""]).chosen {
border: 1px solid white;
}
#calendario_prezzi_output > div.monthContainer table.calendar td.filled.chosen {
background-color: green;
}
#calendario_prezzi_output > div.monthContainer table.calendar th.month:hover {
background-color: green;
}
#calendario_prezzi_output > div.monthContainer table.calendar th.month:active {
background-color: rgba(255,255,255,0.5);
}
#calendario_prezzi_output > div.monthContainer table.calendar th.month {
text-transform: capitalize;
}
#istruzioni {
background-color: #555;
padding: 10px 10px 0 10px;
color: white;
display: flex;
flex-direction: column;
}
#istruzioni p {
margin: 0 0 10px 0;
}
#istruzioni span.square {
display: inline-block;
width: 20px;
height: 20px;
vertical-align: middle;
border: 1px solid transparent;
}
#istruzioni span.square.selected {
background-color: yellow;
}
#istruzioni span.square.chosen {
background-color: green;
}
#istruzioni span.square.selected.chosen {
background-color: green;
border: 1px solid white;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment