Dark theme input fields

This commit is contained in:
Maxime Bloch 2020-07-22 15:17:27 +02:00
parent 8668413a58
commit 8f50c5b297

View file

@ -33,6 +33,11 @@
font-size: 2vh; font-size: 2vh;
} }
nav span {
padding: 2vw;
font-family: monospace;
}
nav a { nav a {
text-decoration: none; text-decoration: none;
@ -98,9 +103,42 @@
.alignRight { .alignRight {
float: right; float: right;
} }
.accentuated { .accentuated {
color: #66351d; color: #66351d;
} }
:root {
--white: #afafaf;
--red: #e31b23;
--bodyColor: #292a2b;
--borderFormEls: hsl(0, 0%, 10%);
--bgFormEls: hsl(0, 0%, 14%);
--bgFormElsFocus: hsl(0, 7%, 20%);
}
select,
input,
textarea,
button {
width: 100%;
line-height: 1.5;
padding: 15px 10px;
border: 1px solid var(--borderFormEls);
color: var(--white);
background: var(--bgFormEls);
transition: background-color 0.3s cubic-bezier(0.57, 0.21, 0.69, 1.25),
transform 0.3s cubic-bezier(0.57, 0.21, 0.69, 1.25);
}
textarea {
height: 170px;
}
::placeholder {
color: inherit;
opacity: 1;
}
</style> </style>
</head> </head>
<body> <body>
@ -121,7 +159,9 @@
<ul class="alignRight"> <ul class="alignRight">
{% if user.is_authenticated %} {% if user.is_authenticated %}
<li class="accentuated"> <li class="accentuated">
Hello, {{ user.username }} <span>
Hello, {{ user.username }}
</span>
</li> </li>
<li> <li>
<a href="{% url 'users:logout' %}"> <a href="{% url 'users:logout' %}">