webapp/public/css/default.css

290 lines
4.0 KiB
CSS
Raw Normal View History

2023-12-05 02:15:41 +00:00
*
{
/* apply defaults */
margin: 0;
padding: 0;
/* allow draw */
font-family: monospace;
/* adaptive */
color-scheme: light dark;
/* vars */
2023-12-05 15:27:24 +00:00
--container-max-width: 768px;
2023-12-06 19:50:47 +00:00
--color-warning: #ee784e;
--color-error: #ff6363;
--color-default: #999;
2024-02-21 07:54:15 +00:00
transition: all .1s ease-in;
-webkit-transition: all .2s ease-in;
-moz-transition: all .2s ease-in;
-o-transition: all .2s ease-in;
2023-12-05 02:15:41 +00:00
}
*::placeholder
{
font-size: 12px;
}
a, a:active, a:visited
{
text-decoration: none;
}
a:hover
{
text-decoration: underline;
}
2023-12-11 17:38:00 +00:00
hr {
background-color: var(--color-default);
border: none;
color: var(--color-default);
height: 1px;
}
2023-12-05 02:15:41 +00:00
body
{
font-size: 12px;
}
form > span
{
float: right;
line-height: 24px;
padding: 0 8px;
}
2023-12-18 03:38:22 +00:00
/* header */
2023-12-05 02:15:41 +00:00
header
{
2023-12-10 08:50:32 +00:00
background-color: Canvas;
2023-12-05 02:15:41 +00:00
display: block;
2023-12-10 08:50:32 +00:00
left: 0;
margin: 0 auto;
max-width: calc(var(--container-max-width) + 2px);
2023-12-11 17:38:00 +00:00
padding-left: 4px;
padding-right: 4px;
2023-12-10 08:50:32 +00:00
padding-top: 16px;
position: fixed;
right: 0;
top: 0;
z-index: 2;
}
header > h2
{
display: inline-block;
font-size: 12px;
margin: 16px 0;
2023-12-05 02:15:41 +00:00
}
header > strong
{
font-size: 14px;
}
header > div
{
2023-12-06 20:01:42 +00:00
margin: 12px 0;
2023-12-05 02:15:41 +00:00
}
2023-12-06 19:50:47 +00:00
header > div > code
{
color: var(--color-error);
font-weight: bold;
}
header > div > sub > svg
{
fill: var(--color-error);
}
2023-12-10 08:50:32 +00:00
header > form > input[type="text"]
{
box-sizing: border-box;
padding: 4px;
width: 100%;
}
2023-12-18 03:38:22 +00:00
/* main */
2023-12-05 02:15:41 +00:00
main
{
display: block;
2023-12-05 19:37:17 +00:00
margin: 16px auto 0 auto;
max-width: var(--container-max-width);
2023-12-08 01:46:44 +00:00
padding-bottom: 164px;
padding-left: 4px;
padding-right: 4px;
padding-top: 132px;
2023-12-05 02:15:41 +00:00
}
2023-12-05 15:14:07 +00:00
main ul
{
list-style: none;
}
main ul ul
2023-12-05 03:16:06 +00:00
{
margin-left: 24px;
2023-12-05 03:16:06 +00:00
}
main ul li
2023-12-05 03:16:06 +00:00
{
2023-12-10 10:18:31 +00:00
border-top: 1px var(--color-default) dotted;
2023-12-05 03:48:25 +00:00
word-wrap: break-word;
2023-12-05 15:14:07 +00:00
}
2023-12-10 09:59:06 +00:00
main > ul > li:first-child
{
2023-12-10 10:18:31 +00:00
border-top: 1px transparent dotted;
2023-12-10 09:59:06 +00:00
}
main ul li div
2023-12-05 15:14:07 +00:00
{
padding: 16px 0;
2023-12-05 15:14:07 +00:00
}
2023-12-10 09:35:18 +00:00
main ul li div a[name]
{
display: block;
position: relative;
2023-12-10 09:59:06 +00:00
top: -160px;
2023-12-10 09:35:18 +00:00
visibility: hidden;
}
main ul li p
2023-12-05 15:14:07 +00:00
{
2024-02-13 22:11:11 +00:00
padding-top: 8px;
2024-02-13 22:14:17 +00:00
line-height: 16px;
2023-12-05 03:16:06 +00:00
}
main ul li p > br /* tmp solution for current twig filters implementation */
{
display: block;
margin: 4px 0;
}
main ul li span > svg
2023-12-06 00:32:39 +00:00
{
cursor: default;
2023-12-06 19:50:47 +00:00
fill: var(--color-default);
2023-12-06 00:32:39 +00:00
float: right;
}
2024-02-21 07:54:15 +00:00
main ul li small
{
color: var(--color-default);
display: inline-block;
opacity: 0;
}
main ul li small svg
{
vertical-align: top;
}
main ul li > div:hover > small
{
opacity: 1;
}
2023-12-18 03:38:22 +00:00
main > form
{
box-sizing: border-box;
display: block;
margin: 16px 0;
overflow: hidden;
width: 100%;
}
main > form > input[type="text"],
main > form > input[type="password"],
main > form > textarea
{
box-sizing: border-box;
display: block;
margin-bottom: 10px;
padding: 4px;
width: 100%;
}
main > form > label
{
clear: both;
display: inline-block;
margin-bottom: 8px;
}
main > form > button
{
cursor: pointer;
float: right;
padding: 2px 8px;
}
main > form > output
{
color: var(--color-error);
display: block;
font-weight: bolder;
margin-bottom: 16px;
}
/* footer */
2023-12-05 02:15:41 +00:00
footer
{
2023-12-05 19:37:17 +00:00
background-color: Canvas;
bottom: 0;
2023-12-05 02:15:41 +00:00
display: block;
2023-12-05 19:37:17 +00:00
left: 0;
position: fixed;
right: 0;
z-index:2;
2023-12-05 02:15:41 +00:00
}
footer > form
{
bottom: 16px;
2023-12-11 17:38:00 +00:00
box-sizing: border-box;
2023-12-05 02:15:41 +00:00
display: block;
2023-12-05 19:37:17 +00:00
margin: 16px auto;
2023-12-11 18:11:59 +00:00
max-width: calc(var(--container-max-width) + 12px);
2023-12-05 19:37:17 +00:00
overflow: hidden;
2023-12-08 00:10:43 +00:00
padding: 4px;
2023-12-05 02:15:41 +00:00
width: 100%;
}
2023-12-09 19:12:42 +00:00
footer > form > input[type="text"],
2023-12-05 02:15:41 +00:00
footer > form > textarea
{
box-sizing: border-box;
display: block;
2023-12-05 19:37:17 +00:00
margin-bottom: 10px;
2023-12-05 02:15:41 +00:00
padding: 4px;
width: 100%;
}
footer > form > textarea:focus
{
min-height: 100px;
}
2023-12-05 02:15:41 +00:00
footer > form > button
{
cursor: pointer;
float: right;
padding: 2px 8px;
2023-12-05 22:44:38 +00:00
}
footer > form > output
{
2023-12-06 19:50:47 +00:00
color: var(--color-error);
2023-12-05 22:44:38 +00:00
display: block;
font-weight: bolder;
margin-bottom: 16px;
2023-12-05 02:15:41 +00:00
}