Skip to content

Commit

Permalink
Move rest of inline styles to css file
Browse files Browse the repository at this point in the history
  • Loading branch information
ilesoft committed Dec 19, 2024
1 parent 4261524 commit ad9e122
Show file tree
Hide file tree
Showing 11 changed files with 46 additions and 30 deletions.
20 changes: 19 additions & 1 deletion web/media/kipa.css
Original file line number Diff line number Diff line change
Expand Up @@ -500,4 +500,22 @@ td.th_erotin {

.oneRowInlineForm {
display: flex;
}
}

.login-form {
float:right;
margin-top:-4px;
margin-bottom:0;
padding-bottom:0;
height:18px
}

.tab-selection-box {
border:1px solid gray;
margin-bottom: 1em;
padding: 10px
}

.vapaakaava-input {
width: 100%;
}
10 changes: 10 additions & 0 deletions web/media/tulostaulukko.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
.tulostaulukko-solu {
padding-right:10px;
}

.vartiosarake-solu {
min-width:100px;
}

.tulostaulukko-otsikko {
margin:0;
padding:0;
line-height:normal;
}
6 changes: 1 addition & 5 deletions web/templates/tupa/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,7 @@
<div id="page-title" class="capitalize">
<a href="/kipa/{{ kisa_nimi }}/">{{ kisa_nimi|alaviiva_pois }}</a>
</div>
<div style="float:right;
margin-top:-4px;
margin-bottom:0;
padding-bottom:0;
height:18px">{% include "tupa/login.html" %}</div>
<div class="login-form">{% include "tupa/login.html" %}</div>
</div>
<div id="breadcrumbs">
{% if tarkistus %}
Expand Down
6 changes: 1 addition & 5 deletions web/templates/tupa/base_riisuttu.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@
<div id="wrap">
<div id="header">
<div id="page-title">Uusi kisa</div>
<div style="float:right;
margin-top:-4px;
margin-bottom:0;
padding-bottom:0;
height:18px">{% include "tupa/login.html" %}</div>
<div class="login-form">{% include "tupa/login.html" %}</div>
</div>
<div id="breadcrumbs">
<a href="/kipa/">&lt;- Takaisin etusivulle</a>
Expand Down
2 changes: 1 addition & 1 deletion web/templates/tupa/forms/vapaa_kaava.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
name="{{ kaava.name }}"
id="{{ kaava.id }}"
value="{{ kaava.value }}"
style="width:100%" />
class="vapaakaava-input" />
<br />
<br>
<br>
Expand Down
8 changes: 4 additions & 4 deletions web/templates/tupa/heijasta.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
<table width="100%" border="0" id="tulostaulukko_otsikko">
<tr valign="top">
<td width="33%">
<h1 class="uppercase" style="margin:0; padding:0; line-height:normal;">{{ kisa_nimi|alaviiva_pois }}</h1>
<h1 class="tulostaulukko-otsikko uppercase">{{ kisa_nimi|alaviiva_pois }}</h1>
</td>
<td width="33%" align="center">
<h2 style="line-height:normal;">{{ heading }}</h2>
<h2 class="tulostaulukko-otsikko">{{ heading }}</h2>
</td>
<td width="33%" align="right">&nbsp;</td>
</tr>
Expand Down Expand Up @@ -52,7 +52,7 @@ <h2 style="line-height:normal;">{{ heading }}</h2>
{% comment %} ylarivin eka {% endcomment %}
<td width="30" align="right"></td>
<td width="30" align="right" class="tulostaulukko-solu"></td>
<td style="min-width:100px;"></td>
<td class="vartiosarake-solu"></td>
<td align="right" width=30 class="tulostaulukko-solu"></td>
{% else %}
{% comment %} ylarivi {% endcomment %}
Expand Down Expand Up @@ -122,7 +122,7 @@ <h2 style="line-height:normal;">{{ heading }}</h2>
<b>SIJ.</b>
</td>
<td width="30" align="right" class="tulostaulukko-solu"></td>
<td style="min-width:100px;">
<td class="vartiosarake-solu">
<b>VARTIO</b>
</td>
<td align="right" width=30 class="tulostaulukko-solu">
Expand Down
6 changes: 1 addition & 5 deletions web/templates/tupa/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@
<div id="page-title">
{{ kisa_nimi }} <font color=00FF00 size=3><b>{{ talletettu }}</b></font>
</div>
<div style="float:right;
margin-top:-4px;
margin-bottom:0;
padding-bottom:0;
height:18px">{% include "tupa/login.html" %}</div>
<div class="login-form">{% include "tupa/login.html" %}</div>
</div>
<div id="breadcrumbs"></div>
<div id="main" class="clearfix">
Expand Down
2 changes: 1 addition & 1 deletion web/templates/tupa/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
<form action="/kipa/login/" name="form1" id="form1" method="post">
<input type="text" id="uname" name="uname">
<input type="password" id="pword" name="pword">
<button type="submit" class="small blue awesome" style="height:20px;">Kirjaudu »</button>
<button type="submit" class="small blue awesome">Kirjaudu »</button>
</form>
{% endif %}
6 changes: 3 additions & 3 deletions web/templates/tupa/tulokset.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<table width="100%" border="0" id="tulostaulukko_otsikko">
<tr valign="top">
<td width="33%">
<h1 style="margin:0; padding:0;">{{ kisa_nimi|alaviiva_pois }}</h1>
<h1 class="tulostaulukko-otsikko">{{ kisa_nimi|alaviiva_pois }}</h1>
</td>
<td width="33%" align="center">
<h1>{{ heading }}</h1>
Expand Down Expand Up @@ -49,7 +49,7 @@ <h1>{{ heading }}</h1>
{% comment %} ylarivin eka {% endcomment %}
<td width="30" align="right"></td>
<td width="30" align="right" class="tulostaulukko-solu"></td>
<td style="min-width:100px;"></td>
<td class="vartiosarake-solu"></td>
<td align="right" width=30 class="tulostaulukko-solu"></td>
{% else %}
{% comment %} ylarivi {% endcomment %}
Expand Down Expand Up @@ -119,7 +119,7 @@ <h1>{{ heading }}</h1>
<b>SIJ.</b>
</td>
<td width="30" align="right" class="tulostaulukko-solu"></td>
<td style="min-width:100px;">
<td class="vartiosarake-solu">
<b>VARTIO</b>
</td>
<td align="right" width=30 class="tulostaulukko-solu">
Expand Down
8 changes: 4 additions & 4 deletions web/templates/tupa/tuloksetHTML.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
<table width="100%" border="0" id="tulostaulukko_otsikko">
<tr valign="top">
<td width="33%">
<h1 class="uppercase" style="margin:0; padding:0; line-height:normal;">{{ kisa_nimi|alaviiva_pois }}</h1>
<h1 class="tulostaulukko-otsikko uppercase">{{ kisa_nimi|alaviiva_pois }}</h1>
</td>
<td width="33%" align="center">
<h1 style="line-height:normal;">{{ heading }}</h1>
<h1 class="tulostaulukko-otsikko">{{ heading }}</h1>
</td>
<td width="33%" align="right">&nbsp;</td>
</tr>
Expand Down Expand Up @@ -42,7 +42,7 @@ <h1 style="line-height:normal;">{{ heading }}</h1>
{% comment %} ylarivin eka {% endcomment %}
<td width="30" align="right"></td>
<td width="30" align="right" class="tulostaulukko-solu"></td>
<td style="min-width:100px;"></td>
<td class="vartiosarake-solu"></td>
<td align="right" width=30 class="tulostaulukko-solu"></td>
{% else %}
{% comment %} ylarivi {% endcomment %}
Expand Down Expand Up @@ -118,7 +118,7 @@ <h1 style="line-height:normal;">{{ heading }}</h1>
<b>SIJ.</b>
</td>
<td width="30" align="right" class="tulostaulukko-solu"></td>
<td style="min-width:100px;">
<td class="vartiosarake-solu">
<b>VARTIO</b>
</td>
<td align="right" width=30 class="tulostaulukko-solu">
Expand Down
2 changes: 1 addition & 1 deletion web/templates/tupa/valitse.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h1>{{ heading }}</h1>
{% endif %}
{% endfor %}
</ul>
<div style="border:1px solid gray; margin-bottom: 1em; padding: 10px">
<div class="tab-selection-box">
{% for sarake in taulukko %}
<div id="sarake{{ sarake.id }}" class="tabcontent">
<ul id="tehtavatabs">
Expand Down

0 comments on commit ad9e122

Please sign in to comment.