Skip to content
Snippets Groups Projects
Commit 3a58f9cd authored by Martin Mareš's avatar Martin Mareš
Browse files

App: Styling

parent c0499fcc
No related branches found
No related tags found
No related merge requests found
...@@ -22,20 +22,28 @@ ...@@ -22,20 +22,28 @@
} }
.meeting { .meeting {
border: 1px solid blue; border: 1px solid blue;
font-size: smaller;
background-color: #ccccff; background-color: #ccccff;
overflow: hidden;
} }
.meeting:hover { .meeting:hover {
background-color: #aaaaff; background-color: #aaaaff;
} }
.collision { .collision {
border: 1px solid red; border: 1px solid red;
font-size: smaller;
background-color: #ffcccc; background-color: #ffcccc;
} }
.collision:hover { .collision:hover {
background-color: #ffaaaa; background-color: #ffaaaa;
} }
.mtime {
margin: 0;
font-size: smaller;
}
.mdesc {
margin: 0;
margin-top: 0.5ex;
font-size: 70%;
}
</style> </style>
</head> </head>
...@@ -68,8 +76,9 @@ ...@@ -68,8 +76,9 @@
<div class=hour style='position: absolute; left: {{ h.x }}px; top: {{ h.y }}px; width: {{ h.w }}px; height: {{ h.h }}px;'></div> <div class=hour style='position: absolute; left: {{ h.x }}px; top: {{ h.y }}px; width: {{ h.w }}px; height: {{ h.h }}px;'></div>
{% endfor %} {% endfor %}
{% for m in g.meetings %} {% for m in g.meetings %}
<div class={{ "collision" if m.coll else "meeting" }} style='position: absolute; left: {{ m.x }}px; top: {{ m.y }}px; width: {{ m.w }}px; height: {{ m.h }}px;' title='{{ m.start + "–" + m.end + ": " + m.topic|e }}'> <div class='meeting{{ " collision" if m.coll else "" }}' style='position: absolute; left: {{ m.x }}px; top: {{ m.y }}px; width: {{ m.w }}px; height: {{ m.h }}px;' title='{{ m.start + "–" + m.end + ": " + m.topic|e }}'>
{{ m.start }} – {{ m.end }} <p class=mtime>{{ m.start }}–{{ m.end }}
<p class=mdesc>{{ m.topic }}
</div> </div>
{% endfor %} {% endfor %}
</div> </div>
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment