Skip to content

Commit

Permalink
Format CSS and remove unnecessary attributes on style/link elements
Browse files Browse the repository at this point in the history
  • Loading branch information
153957 committed Jul 14, 2024
1 parent 7f90665 commit eca63d5
Show file tree
Hide file tree
Showing 27 changed files with 337 additions and 175 deletions.
51 changes: 34 additions & 17 deletions doc/_static/hisparc_style.css
Original file line number Diff line number Diff line change
@@ -1,39 +1,49 @@
body {
background: #fff;
max-width: 900px;
margin: 0 auto;}
margin: 0 auto;
}

div.document {
background-color: #fafafa;}
background-color: #fafafa;
}

div.sphinxsidebar ul {
margin: 10px 10px;}
margin: 10px 10px;
}

div.sphinxsidebarwrapper {
padding: 0px 0px 10px 0px;}
padding: 0px 0px 10px 0px;
}

div.sphinxsidebar h3,
div.sphinxsidebar h4 {
color: #111;
background: none;
padding: 8px 10px 5px 10px;
border-bottom: 1px solid #ddd;}
border-bottom: 1px solid #ddd;
}

div.sphinxsidebar h3 a {
color: #111;}
color: #111;
}

div.sphinxsidebar a {
color: #333;}
color: #333;
}

div.sphinxsidebarwrapper ul {
margin-right: 5px;}
margin-right: 5px;
}

p.searchtip {
display: none;}
display: none;
}

div.body {
padding: 0 25px 25px 30px;
color: #333;}
color: #333;
}

div.body h1,
div.body h2,
Expand All @@ -43,28 +53,35 @@ div.body h5,
div.body h6 {
background: none;
padding-top: 0;
padding-left: 0;}
padding-left: 0;
}

div.body h1 {
border-top: none;
padding-top: 20px;
font-size: 260%;}
font-size: 260%;
}

div.body h2 {
font-size: 210%;
padding-top: 15px;}
padding-top: 15px;
}

div.body h3 {
font-size: 170%;
border-bottom: 1px solid #BBB;}
border-bottom: 1px solid #BBB;
}

div.body h4 {
font-size: 130%;
margin-top: 20px;
padding-left: 3px;}
padding-left: 3px;
}

div.related {
background-color: #0071E2;}
background-color: #0071E2;
}

div.related a {
color: #fff;}
color: #fff;
}
15 changes: 10 additions & 5 deletions publicdb/analysissessions/static/styles/request_form.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
#container {
width: 650px;}
width: 650px;
}

#pageHeader {
left: 430px;}
left: 430px;
}

ul {
list-style: none;}
list-style: none;
}

.helptext {
font-size: 0.8em;}
font-size: 0.8em;
}

.errorlist {
color: red;}
color: red;
}

36 changes: 24 additions & 12 deletions publicdb/analysissessions/static/styles/results.css
Original file line number Diff line number Diff line change
@@ -1,46 +1,58 @@
#header {
margin-top: -80px;}
margin-top: -80px;
}

#graphs {
float: left;}
float: left;
}

#session, #scores {
float: right;
margin-top: 40px;
width: 220px;
font-size: 80%;}
font-size: 80%;
}

.sectionTitle {
font-weight: bold;
font-size: 130%;}
font-size: 130%;
}

.keyvalue {
margin-top: 5px;
margin-bottom: 5px;}
margin-bottom: 5px;
}

.key {
margin-right: 10px;
font-weight: bold;}
font-weight: bold;
}

h3 {
margin-bottom: 5px;}
margin-bottom: 5px;
}

table {
width: 100%;}
width: 100%;
}

th {
text-align: left;}
text-align: left;
}

.student {
padding-right: 5px;
padding-left: 5px;}
padding-left: 5px;
}

#coreMap {
clear: both;
width: 585px;
height: 300px;}
height: 300px;
}

#starMap {
position: absolute;
top: 375px;
left: 500px;}
left: 500px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% block title %}jSparc | Session request{% endblock %}

{% block head_styles %}
<link rel="stylesheet" type="text/css" media="all" href="{% static 'styles/request_form.css' %}">
<link rel="stylesheet" href="{% static 'styles/request_form.css' %}">
{% endblock %}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


{% block head_styles %}
<link rel="stylesheet" type="text/css" media="all" href="{% static 'styles/results.css' %}">
<link rel="stylesheet" href="{% static 'styles/results.css' %}">
{% endblock %}

{% block head %}
Expand Down
24 changes: 16 additions & 8 deletions publicdb/default/static/styles/base.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
html {
font-family: sans-serif;}
font-family: sans-serif;
}

#container {
margin: auto;
width: 900px;}
width: 900px;
}

#pageHeader {
position: relative;
Expand All @@ -16,25 +18,31 @@ html {
background-image: url(../header.svg);
background-position: top right;
background-repeat: no-repeat;
background-size: contain;}
background-size: contain;
}

#pageHeader span {
display: none;}
display: none;
}

a:hover {
color: #005;
text-decoration: underline;}
text-decoration: underline;
}

a {
border-radius: 3px;
color: #25B;
text-decoration: none;}
text-decoration: none;
}

.small {
font-size: 10pt;}
font-size: 10pt;
}

.reference {
font-size: 8pt;}
font-size: 8pt;
}

/* Increase CARTO map tile contrast in Leaflet maps */
img.leaflet-tile {
Expand Down
9 changes: 6 additions & 3 deletions publicdb/default/templates/400.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,20 @@
width: 600px;
height: 413px;
margin: 0 auto;
background: white url("{% static '400.png' %}") center no-repeat;}
background: white url("{% static '400.png' %}") center no-repeat;
}

#help {
width: 600px;
margin: 0 auto;
text-align: center;
font-size: 11pt;}
font-size: 11pt;
}

a {
color: #25B;
text-decoration: none;}
text-decoration: none;
}
</style>
{% endblock %}

Expand Down
9 changes: 6 additions & 3 deletions publicdb/default/templates/403.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,20 @@
width: 600px;
height: 413px;
margin: 0 auto;
background: white url("{% static '403.png' %}") center no-repeat;}
background: white url("{% static '403.png' %}") center no-repeat;
}

#help {
width: 600px;
margin: 0 auto;
text-align: center;
font-size: 11pt;}
font-size: 11pt;
}

a {
color: #25B;
text-decoration: none;}
text-decoration: none;
}
</style>
{% endblock %}

Expand Down
9 changes: 6 additions & 3 deletions publicdb/default/templates/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,20 @@
width: 600px;
height: 413px;
margin: 0 auto;
background: white url("{% static '404.png' %}") center no-repeat;}
background: white url("{% static '404.png' %}") center no-repeat;
}

#help {
width: 600px;
margin: 0 auto;
text-align: center;
font-size: 11pt;}
font-size: 11pt;
}

a {
color: #25B;
text-decoration: none;}
text-decoration: none;
}
</style>
{% endblock %}

Expand Down
21 changes: 14 additions & 7 deletions publicdb/default/templates/500.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
<title>500 - Server Error</title>
<style type="text/css">
html {
font-family: sans-serif;}
font-family: sans-serif;
}

#container {
margin: auto;
width: 850px;}
width: 850px;
}

#pageHeader {
background-image: url("{% static 'header.svg' %}");
Expand All @@ -25,26 +27,31 @@
padding: 0;
left: 630px;
display: inline-block;
position: relative;}
position: relative;
}

#pageHeader span {
display: none;}
display: none;
}

#notfound {
width: 600px;
height: 413px;
margin: 0 auto;
background: white url("{% static '500.png' %}") center no-repeat;}
background: white url("{% static '500.png' %}") center no-repeat;
}

#help {
width: 600px;
margin: 0 auto;
text-align: center;
font-size: 10pt;}
font-size: 10pt;
}

a {
color: #25B;
text-decoration: none;}
text-decoration: none;
}
</style>
</head>

Expand Down
Loading

0 comments on commit eca63d5

Please sign in to comment.