mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 22:52:22 +00:00
frontend: styling
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
body {
|
body {
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|||||||
@@ -6,11 +6,6 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>{% block title %}RustiCal{% endblock %}</title>
|
<title>{% block title %}RustiCal{% endblock %}</title>
|
||||||
<link rel="stylesheet" href="/frontend/assets/style.css" />
|
<link rel="stylesheet" href="/frontend/assets/style.css" />
|
||||||
<style>
|
|
||||||
* {
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
{% block imports %}{% endblock %}
|
{% block imports %}{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|||||||
@@ -7,27 +7,42 @@
|
|||||||
<style>
|
<style>
|
||||||
li.collection-list-item {
|
li.collection-list-item {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
display: grid;
|
display: contents;
|
||||||
margin: 12px;
|
|
||||||
min-height: 80px;
|
|
||||||
background: #EEE;
|
|
||||||
padding: 8px;
|
|
||||||
border-radius: 12px;
|
|
||||||
grid-template-areas:
|
|
||||||
"title color-chip"
|
|
||||||
"description color-chip";
|
|
||||||
grid-template-rows: auto auto;
|
|
||||||
grid-template-columns: auto 50px;
|
|
||||||
padding: 0;
|
|
||||||
|
|
||||||
a {
|
a {
|
||||||
display: contents;
|
background: #EEE;
|
||||||
|
display: grid;
|
||||||
|
margin: 12px;
|
||||||
|
min-height: 80px;
|
||||||
|
border-radius: 12px;
|
||||||
|
grid-template-areas:
|
||||||
|
". color-chip"
|
||||||
|
"title color-chip"
|
||||||
|
"description color-chip"
|
||||||
|
". color-chip";
|
||||||
|
grid-template-rows: 12px auto auto 12px;
|
||||||
|
grid-template-columns: auto 50px;
|
||||||
|
color: inherit;
|
||||||
|
text-decoration: none;
|
||||||
|
padding-left: 12px;
|
||||||
|
|
||||||
|
.title {
|
||||||
|
grid-area: title;
|
||||||
|
}
|
||||||
|
|
||||||
|
.description {
|
||||||
|
grid-area: description;
|
||||||
|
}
|
||||||
|
|
||||||
.color-chip {
|
.color-chip {
|
||||||
background: var(--color);
|
background: var(--color);
|
||||||
grid-area: color-chip;
|
grid-area: color-chip;
|
||||||
border-radius: 0 12px 12px 0;
|
border-radius: 0 12px 12px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: #DDD;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user