CSS cleanups
This commit is contained in:
1 parent
36470ff7ef
commit
6d2c38b095
6 files changed
+51
-47
No files matched your search
@@ -1,4 +1,3 @@
|
||||
/* Width classes */
|
||||
.w-25 {
|
||||
width: 25%;
|
||||
}
|
||||
@@ -31,7 +30,6 @@
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/* Margin and Padding classes */
|
||||
.mt-1 {
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
@@ -310,6 +308,4 @@
|
||||
.py-5 {
|
||||
padding-top: 3rem;
|
||||
padding-bottom: 3rem;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
+21
-19
@@ -1,11 +1,6 @@
|
||||
|
||||
#content .form {
|
||||
|
||||
}
|
||||
|
||||
#content .form .col {
|
||||
display: inline-block;
|
||||
width: 50%;
|
||||
width: 42%;
|
||||
white-space: normal;
|
||||
margin-left: 0;
|
||||
box-sizing: border-box;
|
||||
@@ -22,6 +17,7 @@
|
||||
}
|
||||
|
||||
/* Styles for screen widths less than 600px */
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
#content .form .col {
|
||||
display: block;
|
||||
@@ -30,11 +26,12 @@
|
||||
}
|
||||
|
||||
#content .form h3 {
|
||||
font-weight: 700;
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
width: 100%;
|
||||
display: inline-block;
|
||||
box-sizing: border-box;
|
||||
padding-left: 2rem;
|
||||
padding-left: 1rem;
|
||||
text-align: left;
|
||||
color: var(--color-font3)
|
||||
}
|
||||
@@ -46,45 +43,51 @@
|
||||
}
|
||||
|
||||
#content .row label {
|
||||
font-size: 14px;
|
||||
width: 25%;
|
||||
min-width: 128px;
|
||||
margin-right: 1rem;
|
||||
text-align: right;
|
||||
font-weight: 600;
|
||||
font-weight: 400;
|
||||
color: var(--color-font2)
|
||||
}
|
||||
|
||||
#content .row input,
|
||||
#content .row select {
|
||||
#content .row input, #content .row select {
|
||||
flex-grow: 1;
|
||||
min-width: 0;
|
||||
border: 1px solid var(--color3);
|
||||
border-radius: 4px;
|
||||
padding: 6px;
|
||||
padding: 9px 6px 6px;
|
||||
background-color: var(--color2);
|
||||
color: var(--color-font2)
|
||||
color: var(--color-font2);
|
||||
font-family: "Courier Prime", serif;
|
||||
}
|
||||
|
||||
#content .row input[type="file"]{
|
||||
padding: 2px 2px;
|
||||
}
|
||||
|
||||
#content .row input:focus,
|
||||
#content .row select:focus {
|
||||
#content .row input:focus, #content .row select:focus {
|
||||
outline: none;
|
||||
border-color: var(--color3);
|
||||
box-shadow: 0 0 0 3px rgba(77, 144, 254, 0.25);
|
||||
background-color: var(--color2);
|
||||
color: var(--color-font2)
|
||||
color: var(--color-font2);
|
||||
}
|
||||
|
||||
#content .row select > option{
|
||||
font-family: "Helvetica", serif;
|
||||
}
|
||||
|
||||
#content .row input[type="file"]::file-selector-button {
|
||||
background-color: var(--color3);
|
||||
border: 1px solid var(--color2);
|
||||
border-radius: 4px;
|
||||
padding: 4px 6px;
|
||||
padding: 6px 6px 3px;
|
||||
color: var(--color-font2);
|
||||
cursor: pointer;
|
||||
transition: background-color 0.3s, border-color 0.3s;
|
||||
font-family: "Courier Prime", serif;
|
||||
}
|
||||
|
||||
#content .row input[type="file"]::file-selector-button:hover {
|
||||
@@ -101,5 +104,4 @@
|
||||
|
||||
#content .form .flex button{
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -16,7 +16,7 @@ body {
|
||||
background-color: var(--color1);
|
||||
|
||||
font-size: 16px;
|
||||
font-family: "Courier Prime";
|
||||
font-family: "Courier Prime", serif;
|
||||
display:flex;
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ body, html, main{
|
||||
}
|
||||
|
||||
#sidebar li {
|
||||
padding: 2px 16px;
|
||||
padding: 4px 16px 2px;
|
||||
font-size: 1.0rem;
|
||||
border-radius: 4px;
|
||||
transition: background-color 0.2s ease-in-out;
|
||||
@@ -179,12 +179,13 @@ body, html, main{
|
||||
|
||||
#content .anchorbutton {
|
||||
border-radius: 4px;
|
||||
padding: 8px;
|
||||
padding: 8px 8px 6px;
|
||||
border-color: transparent;
|
||||
color: var(--color-font1);
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
transition: background-color 0.3s ease;
|
||||
font-family: "Courier Prime", serif;
|
||||
}
|
||||
|
||||
#content .btn-blue {
|
||||
@@ -239,7 +240,7 @@ body, html, main{
|
||||
background-color: #CCCCCC;
|
||||
font-family: "Courier New";
|
||||
border-radius: 4px;
|
||||
padding: 8px 10px;
|
||||
padding: 9px 10px 6px;
|
||||
}
|
||||
|
||||
#content .statblock-green {
|
||||
@@ -254,6 +255,10 @@ body, html, main{
|
||||
background-color: #FA9696
|
||||
}
|
||||
|
||||
#content .redlink {
|
||||
color: #FF4D4D;
|
||||
}
|
||||
|
||||
/* Long StatBlock which we can copy */
|
||||
|
||||
#content .long-statblock {
|
||||
@@ -286,8 +291,6 @@ body, html, main{
|
||||
color: var(--color-font1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* ??? */
|
||||
|
||||
td pre {
|
||||
@@ -295,4 +298,10 @@ td pre {
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
#content .error {
|
||||
color: red;
|
||||
}
|
||||
|
||||
#content .site-title {
|
||||
color: var(--color-font3);
|
||||
}
|
||||
@@ -2,9 +2,11 @@
|
||||
<tr>
|
||||
<td><a href="/user/{{test.author}}">{{test.author|capfirst|slice:":6"}}</a></td>
|
||||
<td>{{test.engine}}</td>
|
||||
{% if test.error %} <td><a href="/test/{{test.id}}"><span style="color: red">[x]</span> {{test|prettyDevName}}</a></td>
|
||||
{% elif test|testIsFRC %} <td><a href="/test/{{test.id}}">{{test|prettyDevName}}<span style="color: green">[FRC]</span></a></td>
|
||||
{% else %} <td><a href="/test/{{test.id}}">{{test|prettyDevName}}</a></td> {% endif %}
|
||||
<td>
|
||||
<a href="/test/{{test.id}}">{{test|prettyDevName}}</a>
|
||||
{% if test.error %} <span style="color: red">*</span> {% endif %}
|
||||
{% if test|testIsFRC %} <span style="color: green">[FRC]</span> {% endif %}
|
||||
</td>
|
||||
<td class="textcenter"><a href="{{test|gitDiffLink}}">diff</a></td>
|
||||
<td>{{test.timecontrol}}</td>
|
||||
<td class='statblock statblock-{{test|testResultColour}}'><strong>{{test|shortStatBlock|linebreaksbr}}</strong></td>
|
||||
|
||||
@@ -44,12 +44,6 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- Views may return an error message -->
|
||||
{% if error %}
|
||||
<div id="error">
|
||||
<pre>{{error}}</pre>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div id="sidebar">
|
||||
|
||||
@@ -115,7 +109,8 @@
|
||||
|
||||
<div id="content-parent">
|
||||
<div id="content">
|
||||
<h2> <a class="TitleLink" href="/">OpenBench Testing Framework</a></h2>
|
||||
<h2><a class="site-title" href="/">OpenBench Testing Framework</a></h2>
|
||||
{% if error %}<div class="error"><pre>{{error}}</pre></div>{% endif %}
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
|
||||
@@ -147,17 +147,18 @@
|
||||
<form method="POST" action="/newTest/">
|
||||
{% csrf_token %}
|
||||
|
||||
|
||||
|
||||
<div class="form w-100">
|
||||
<div class="col">
|
||||
|
||||
<h3> Engine </h3>
|
||||
<div class="row">
|
||||
<label> Engine </label> <select id="enginename" name="enginename" onchange="set_engine(value);">
|
||||
{% for engine in config.engines %}
|
||||
<option value="{{ engine }}">{{ engine }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<label> Engine </label>
|
||||
<select id="enginename" name="enginename" onchange="set_engine(value);">
|
||||
{% for engine in config.engines %}
|
||||
<option value="{{ engine }}">{{ engine }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
@@ -284,5 +285,4 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user