Skip to content

Commit 9fd2cd1

Browse files
committed
Merge branch 'master' into 108-json-validation
2 parents a3ad1e6 + d2115df commit 9fd2cd1

5 files changed

Lines changed: 44 additions & 23 deletions

File tree

meta_creator/templates/meta_creator/index.html

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ <h3 class="mainHeader">
2323
<div class="col-12">
2424
<form id="form1" method="post" action="{% url 'meta_creator:getdata' %}">
2525
{% csrf_token %}
26-
<h6 class="custom-tooltip">
26+
<h6>
2727
Project URL
28-
<span class="tooltip-text">
28+
<span class="custom-tooltip">
29+
<i class="fa fa-info-circle" aria-hidden="true"></i>
30+
<span class="tooltip-text">
2931
The GitHub or GitLab repository URL
32+
</span>
3033
</span>
31-
<i class="fa fa-info-circle" aria-hidden="true"></i>
3234
</h6>
3335
<input
3436
type="url"
@@ -42,8 +44,10 @@ <h6 class="custom-tooltip">
4244
>
4345
{% endif %}
4446
<div class="tooltip-container">
45-
<h6 class="custom-tooltip">
47+
<h6>
4648
Token Key
49+
<span class="custom-tooltip">
50+
<i class="fa fa-info-circle" aria-hidden="true"></i>
4751
<span class="tooltip-text">
4852
To extract metadata from GitHub repositories token is not needed,
4953
however, using one resolves rate limitations and allows for
@@ -65,28 +69,30 @@ <h6 class="custom-tooltip">
6569
>Create a personal access token</a
6670
>
6771
</span>
68-
<i class="fa fa-info-circle" aria-hidden="true"></i>
72+
</span>
6973
</h6>
7074
</div>
7175
<input
7276
type="text"
7377
id="token_input"
7478
name="personal_token_key"
75-
placeholder="(Optional) Enter your personal token key from GitHub or GitLab"
79+
placeholder="Enter your personal token key from GitHub or GitLab"
7680
value="" />
7781
{% if error_message_token %}
7882
<span id="token_error" class="error_message"
7983
>{{ error_message_token }}</span
8084
>
8185
{% endif %}
8286
<div class="captcha-box">
83-
<h6 for="id_captcha_1" class="custom-tooltip">
87+
<h6 for="id_captcha_1" >
8488
Captcha Check
85-
<span class="tooltip-text">
89+
<span class="custom-tooltip">
90+
<i class="fa fa-info-circle" aria-hidden="true"></i>
91+
<span class="tooltip-text">
8692
CAPTCHA is a security system used to prevent spam and abuse by
8793
distinguishing human users from automated bots.
8894
</span>
89-
<i class="fa fa-info-circle" aria-hidden="true"></i>
95+
</span>
9096
{% for message in messages %}<span
9197
id="captcha-error"
9298
class="captcha-error"

meta_creator/templates/meta_creator/information.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="info-page container overflow-auto">
44
<div class="row">
55
<div class="col-12">
6-
<div class="info-header text-center"><h3>What is SMECS ?</h3></div>
6+
<div class="info-header text-center"><h3>What is SMECS?</h3></div>
77
</div>
88
<div class="col-12">
99
<div class="info-content">

meta_creator/templates/meta_creator/legals.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{% block content %}
66

77

8-
<div class="info-page container" role="main">
8+
<div class="info-page container legals-page" role="main">
99
<div class="row text-center ">
1010
<div class="col-12">
1111
<div class="info-header"> <h3>Legals/Impressum</h3></div>

static/foundation/css/foundation.css

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ textarea {
8989
.navbar .navbar-toggler {
9090
border-color: rgba(255, 255, 255, 0.5);
9191
}
92+
.hints-icon {
93+
color: white;
94+
}
9295

9396
/******************** Initial Form of the software metadata Extractor (index.html) ********************/
9497
.InitialFormContainer {
@@ -244,8 +247,7 @@ label[for="id_captcha_1"] {
244247
}
245248
/************ Tool Tip Styles ************/
246249
.tooltip-container {
247-
display: flex;
248-
align-items: center;
250+
display: block;
249251
}
250252

251253
.tool-tip {
@@ -1012,12 +1014,18 @@ div.input-container input::placeholder {
10121014
color: #333;
10131015
}
10141016

1017+
/********************* Legals page **************************************/
1018+
1019+
.legals-page {
1020+
overflow-y: auto;
1021+
max-height: calc(100vh - 9rem);
1022+
}
1023+
10151024
/********************* SMECS First page tool-tips **********************/
10161025

10171026
.custom-tooltip {
10181027
position: relative;
1019-
float: left;
1020-
display: inline;
1028+
display: inline-block;
10211029
cursor: pointer;
10221030
}
10231031

@@ -1071,8 +1079,10 @@ label > .fa-info-circle {
10711079
padding: 5px;
10721080
z-index: 1000;
10731081
position: absolute;
1074-
left: -20px;
1075-
top: 25px;
1082+
left: 100%;
1083+
top: 50%;
1084+
transform: translateY(-50%);
1085+
margin-left: 6px;
10761086
transition: opacity 0.3s;
10771087
pointer-events: none;
10781088
opacity: 0;
@@ -1101,8 +1111,10 @@ label > .fa-info-circle {
11011111
padding: 5px;
11021112
position: absolute;
11031113
z-index: 1;
1104-
left: 15%;
1105-
transform: translateX(10%);
1114+
left: 100%;
1115+
top: 50%;
1116+
transform: translateY(-50%);
1117+
margin-left: 6px;
11061118
transition: opacity 0.3s;
11071119
pointer-events: none;
11081120
}
@@ -1561,7 +1573,7 @@ input:checked + .slider:before {
15611573
@media (min-width: 1024px) and (max-width: 1700px) {
15621574
.custom-tooltip .tooltip-text {
15631575
width: 25rem;
1564-
left: 8%;
1576+
left: 100%;
15651577
}
15661578

15671579
#form1 h6 {

templates/base.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
data-bs-target="#offcanvasRight"
7070
aria-controls="offcanvasRight">
7171
Extra Hints<span
72-
><i class="fa-solid fa-circle-question" style="color: white"></i
72+
><i class="fa-solid fa-circle-question hints-icon"></i
7373
></span>
7474
</button>
7575
{% endif %}
@@ -93,13 +93,15 @@
9393
<a
9494
class="nav-link {% if request.resolver_match.url_name == 'index' %}active{% endif %}"
9595
href="{% url 'meta_creator:index' %}"
96+
title="Extract metadata from a GitHub or GitLab repository"
9697
>Home</a
9798
>
9899
</li>
99100
<li class="nav-item">
100101
<a
101102
class="nav-link {% if request.resolver_match.url_name == 'information' %}active{% endif %}"
102103
href="{% url 'meta_creator:information' %}"
104+
title="Learn more about SMECS"
103105
>About SMECS</a
104106
>
105107
</li>
@@ -124,9 +126,10 @@
124126
type="button"
125127
data-bs-toggle="offcanvas"
126128
data-bs-target="#offcanvasRight"
127-
aria-controls="offcanvasRight">
129+
aria-controls="offcanvasRight"
130+
title="Learn more about SMECS user interface">
128131
Hints<span
129-
><i class="fa-solid fa-circle-question" style="color: white"></i
132+
><i class="fa-solid fa-circle-question hints-icon"></i
130133
></span>
131134
</button>
132135

0 commit comments

Comments
 (0)