Responsive activity calendar
How do I make an responsive activity calendar?
Part of a redesign I'm doing for a client. Sorry for the Dutch content.. What is a responsive activity calendar? How do you make a responsive activity calendar? This script and codes were developed by Theun on 23 July 2022, Saturday.
Responsive activity calendar - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Responsive activity calendar</title> <link href='http://fonts.googleapis.com/css?family=Neuton:300' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <ol class="calendar-list"> <li class="calendar-item"> <time class="calendar-time">16 jul 2013 <span class="the-time">22:30</span></time> <div class="calendar-location">Kerkrade</div> <div class="calendar-title">Galaconcert WMC</div> <div class="calendar-executive">Nationaal Jeugd Fanfare Orkest</div> <div class="calendar-misc">Tallahatchie Concerto - Jacob ter Veldhuis. Meer info op <a href="">www.jenitaveurink.nl</a></div> </li> <li class="calendar-item"> <time class="calendar-time">26 mei 2013 <span class="the-time">14:15</span></time> <div class="calendar-location">De Doelen Rotterdam</div> <div class="calendar-title">Stravinsky's Jazz</div> <div class="calendar-executive">Rotterdams Philharmonisch Orkest</div> <div class="calendar-misc">Dirigent : J. Gaffigan Programma Igor Stravinsky, Scherzo a la Russe Leonard Bernstein, Three dance episodes George Gershwin, Rhapsody in Blue Igor Stravinsky, Symphony in Three</div> </li> <li class="calendar-item"> <time class="calendar-time">25 mei 2013 <span class="the-time">20:00</span></time> <div class="calendar-location">Stadshuishal Hengelo</div> <div class="calendar-title">Concerto for saxophone - Carl Wittrock</div> <div class="calendar-executive">Federatie van Hengelose Muziekverenigingen</div> <div class="calendar-misc">Entree: gratis</div> </li> <li class="calendar-item"> <time class="calendar-time">23 mrt 2013 <span class="the-time">14:00</span></time> <div class="calendar-location">Groningen</div> <div class="calendar-title">Concours</div> <div class="calendar-executive">Harmonie Crescendo Gramsbergen</div> </li>
</ol> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Responsive activity calendar - Script Codes CSS Codes
@import url(http://fonts.googleapis.com/css?family=Merriweather:900,700,300);
@import url(http://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css);
* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}
.calendar-time:before, .the-time:before, .calendar-location:after { font-family: "FontAwesome", cursive; display: inline-block; vertical-align: top; font-weight: normal;
}
body { font: 300 1em/1.4 "Merriweather", serif;
}
a { color: whitesmoke;
}
.calendar-list { margin: 0; padding: 0; list-style: none inside;
}
.calendar-item { background-color: tomato; padding: 0.75em 0.5em; color: whitesmoke; margin-bottom: 0.125em;
}
.calendar-time { font-weight: 700;
}
.calendar-time:before { content: "\f073"; margin-right: 0.25em;
}
.the-time { font-weight: 300;
}
.the-time:before { content: "\f0da"; margin: 0 0.25em;
}
.calendar-location { float: right; font-size: 0.875em; text-align: right; max-width: 8em;
}
.calendar-location:after { content: "\f041"; margin-left: 0.25em;
}
.calendar-title { font-weight: 900; padding-top: 0.75em;
}
.calendar-executive { font-size: 0.75em; color: rgba(245, 245, 245, 0.52);
}
.calendar-misc { font-size: 0.75em; padding-top: 1em; line-height: 1.4;
}
@media (min-width: 24em) { body { font-size: 1.125em; }
}
@media (min-width: 32em) { body { font-size: 1.25em; }
}
@media (min-width: 48em) { body { font-size: 1.5em; } .calendar-item { max-width: 32em; margin-right: auto; margin-left: auto; } .calendar-item:after { content: ""; clear: both; display: table; } .calendar-time, .calendar-location { float: left; width: 25%; margin-right: 5%; max-width: none; font-size: 0.875em; } .the-time { display: block; clear: both; } .calendar-location { margin-left: -30%; text-align: left; margin-top: 4.5em; font-size: 0.75em; } .calendar-title, .calendar-executive, .calendar-misc { float: right; width: 70%; } .calendar-title { padding-top: 0; }
}
Responsive activity calendar - Script Codes JS Codes
// disable clicking;
(function (d) { d.body.addEventListener("click", function (e) { e.preventDefault(); }, true);
}(document));
Developer | Theun |
Username | tjoen |
Uploaded | July 23, 2022 |
Rating | 4 |
Size | 3,850 Kb |
Views | 42,504 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Canvas Buldings | 2,737 Kb |
Montyclock | 4,728 Kb |
City block generator | 2,897 Kb |
Roulette | 2,417 Kb |
Generative art from rectangleworld | 5,196 Kb |
SVG pong | 3,818 Kb |
Font Awesome Cheetsheet | 7,878 Kb |
Catslicer | 2,957 Kb |
A Pen by Theun | 6,152 Kb |
D3 example | 2,392 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Mobile first social buttons with no iframe | Alistairtweedie | 3,158 Kb |
Scarlett Johansson Tribute Page | Diomed | 3,233 Kb |
Testimonial Fancy tabs responsive | Amit-webdesigner | 3,056 Kb |
WRENCH - STAFF | Lolita-adams | 1,608 Kb |
React Template | Isac | 1,241 Kb |
Draggables in pure angular | Rlo206 | 5,167 Kb |
Table Exercise | Fresco | 9,585 Kb |
Calculator | Rzencoder | 4,572 Kb |
Two tables and header with jspdf-autotable | Someatoms | 2,245 Kb |
Barber Shop | Bhlaird | 6,270 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!