Update styles

This commit is contained in:
Adil Mohak 2024-10-06 12:15:38 +03:00
parent 84b25710bb
commit 97b2c8068b
6 changed files with 67 additions and 129 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -18,6 +18,10 @@
format("svg"); /* Legacy iOS */ format("svg"); /* Legacy iOS */
} }
:root {
--primary: #f8d270;
}
*, *,
body { body {
font-family: "Rubik", sans-serif; font-family: "Rubik", sans-serif;
@ -49,9 +53,30 @@ body {
background: #999; background: #999;
} }
// .btn { /* Override the text selection highlight color */
// border-radius: 2px; ::selection {
// } background-color: var(
--primary
); /* Custom background color for selected text */
color: #000; /* Custom text color for selected text */
}
a {
color: var(--bs-primary);
text-decoration: none;
}
table .info {
margin-left: -240px;
}
video {
max-width: 100%;
-webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16),
0 2px 10px 0 rgba(0, 0, 0, 0.12);
box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.16),
0px 2px 10px 0px rgba(0, 0, 0, 0.12);
}
.dim { .dim {
/* For Internet Explorer */ /* For Internet Explorer */
@ -61,9 +86,17 @@ body {
} }
.table { .table {
width: 100%;
border-collapse: collapse;
th {
background-color: #f2f2f2;
}
td, td,
th { th {
vertical-align: middle; vertical-align: middle;
padding: 8px;
border: 1px solid #ddd; /* Add thin borders for separation */
text-align: left;
} }
tbody > tr > td > a { tbody > tr > td > a {
display: flex; display: flex;
@ -409,6 +442,7 @@ body {
left: -300px; left: -300px;
} }
} }
@media screen and (max-width: 1150px) { @media screen and (max-width: 1150px) {
#side-nav .top-side { #side-nav .top-side {
padding-top: 3rem; padding-top: 3rem;
@ -489,11 +523,6 @@ body {
} }
} }
a {
color: var(--bs-primary);
text-decoration: none;
}
.title-1 { .title-1 {
position: relative; position: relative;
display: inline-flex; display: inline-flex;
@ -502,6 +531,7 @@ a {
text-transform: capitalize; text-transform: capitalize;
font-weight: 700; font-weight: 700;
font-size: 24px; font-size: 24px;
margin-bottom: 16px;
border-radius: 0.2em; border-radius: 0.2em;
&::before { &::before {
@ -1163,36 +1193,10 @@ a {
vertical-align: middle; vertical-align: middle;
} }
.table {
width: 100%;
border-collapse: collapse;
}
.table th,
.table td {
padding: 8px;
border: 1px solid #ddd; /* Add thin borders for separation */
text-align: left;
}
.table th {
background-color: #f2f2f2;
}
.title-1 {
font-size: 24px;
margin-bottom: 16px;
}
.text-danger { .text-danger {
color: red; color: red;
} }
a {
color: black;
text-decoration: none;
}
.user-picture { .user-picture {
width: 100px; width: 100px;
height: 100px; height: 100px;
@ -1201,10 +1205,6 @@ a {
object-fit: cover; object-fit: cover;
} }
table .info {
margin-left: -240px;
}
/* Specific to the .dashboard-description class */ /* Specific to the .dashboard-description class */
.dashboard-description strong { .dashboard-description strong {
font-weight: 600; font-weight: 600;
@ -1218,36 +1218,10 @@ table .info {
margin-bottom: 15px; margin-bottom: 15px;
} }
.table {
width: 100%;
border-collapse: collapse;
}
.table th,
.table td {
padding: 8px;
border: 1px solid #ddd; /* Add thin borders for separation */
text-align: left;
}
.table th {
background-color: #f2f2f2;
}
.title-1 {
font-size: 24px;
margin-bottom: 16px;
}
.text-danger { .text-danger {
color: red; color: red;
} }
a {
color: black;
text-decoration: none;
}
.bg-light-warning { .bg-light-warning {
background-color: rgb(252, 217, 111) !important; background-color: rgb(252, 217, 111) !important;
} }
@ -1256,19 +1230,6 @@ a {
display: none; display: none;
} }
.session-wrapper {
position: relative;
}
.session {
position: absolute;
top: -15px;
right: 25px;
z-index: 2;
}
.br-orange {
border: 1px solid #fd7e14;
border-radius: 7px;
}
.class-item { .class-item {
display: block; display: block;
border-left: 4px solid #6cbd45; border-left: 4px solid #6cbd45;
@ -1277,31 +1238,19 @@ a {
border-radius: 3px; border-radius: 3px;
box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3); box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3);
transition: 0.5s; transition: 0.5s;
} &:hover {
.class-item p { transform: translateX(15px);
padding: 2px; }
margin: 0; p {
color: #b4b4b4; padding: 2px;
transition: 0.5s; margin: 0;
} color: #b4b4b4;
.class-item a { transition: 0.5s;
padding: 2px; }
color: #343a40; a {
text-decoration: none; padding: 2px;
transition: 0.5s; color: #343a40;
} text-decoration: none;
.class-item:hover { transition: 0.5s;
transform: translateX(15px); }
}
video {
max-width: 100%;
-webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16),
0 2px 10px 0 rgba(0, 0, 0, 0.12);
box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.16),
0px 2px 10px 0px rgba(0, 0, 0, 0.12);
}
.breadcrumb-item a {
color: var(--bs-primary);
} }

View File

@ -59,7 +59,7 @@
{% endif %} --> {% endif %} -->
{% if user.is_lecturer %} {% if user.is_lecturer %}
<p class="fw-bold"><i class="fas fa-book-open"></i>{% trans 'My Courses' %}</p> <p class="fw-bold"><i class="fas fa-book-open"></i> {% trans 'My Courses' %}</p>
{% if courses %} {% if courses %}
<ul> <ul>
{% for course in courses %} {% for course in courses %}

View File

@ -19,54 +19,43 @@
{% for object in object_list %} {% for object in object_list %}
{% with object|class_name as klass %} {% with object|class_name as klass %}
{% if klass == "Program" %} {% if klass == "Program" %}
<div class="session-wrapper">
<div class="session"><div class="info-text bg-secondary text-light px-2 rounded-pill">{% trans 'Program' %}</div></div>
</div>
<div class="col-12 class-item"> <div class="col-12 class-item">
<!-- <p><b>Program of</b> {{ object }}</p> --> <span class="bg-secondary text-light small px-2 rounded-pill">{% trans 'Program' %}</span>
<h4><a href="{{ object.get_absolute_url }}"><b>{{ object.title}}</b></a></h4> <h5><a href="{{ object.get_absolute_url }}"><b>{{ object.title}}</b></a></h5>
<p>{{ object.summary }}</p> <p>{{ object.summary }}</p>
</div><hr> </div><hr>
{% elif klass == "Course" %} {% elif klass == "Course" %}
<div class="session-wrapper">
<div class="session"><div class="info-text bg-secondary text-light px-2 rounded-pill">{% trans 'Course' %}</div></div>
</div>
<div class="col-12 class-item"> <div class="col-12 class-item">
<span class="bg-secondary text-light small px-2 rounded-pill">{% trans 'Course' %}</span>
<p><b>{% trans 'Program of' %}</b> {{ object.program }}</p> <p><b>{% trans 'Program of' %}</b> {{ object.program }}</p>
<h4><a href="{{ object.get_absolute_url }}"><b>{{ object }}</b></a></h4> <h5><a href="{{ object.get_absolute_url }}"><b>{{ object }}</b></a></h5>
<p>{{ object.summary }}</p> <p>{{ object.summary }}</p>
</div><hr> </div><hr>
{% elif klass == "NewsAndEvents" %} {% elif klass == "NewsAndEvents" %}
<div class="session-wrapper">
<div class="session"><div class="info-text bg-secondary text-light px-2 rounded-pill">{% trans 'News And Events' %}</div></div>
</div>
<div class="col-12 class-item"> <div class="col-12 class-item">
<span class="bg-secondary text-light small px-2 rounded-pill">{% trans 'News And Events' %}</span>
<p><b>{% trans 'Date:' %} </b> {{ object.updated_date|timesince }} ago</p> <p><b>{% trans 'Date:' %} </b> {{ object.updated_date|timesince }} ago</p>
<h4><a href="{{ object.get_absolute_url }}"><b>{{ object.title }}</b></a></h4> <h5><a href="{{ object.get_absolute_url }}"><b>{{ object.title }}</b></a></h5>
<p>{{ object.summary }}</p> <p>{{ object.summary }}</p>
</div><hr> </div><hr>
{% elif klass == "Quiz" %} {% elif klass == "Quiz" %}
<div class="session-wrapper">
<div class="session"><div class="info-text bg-secondary text-light px-2 rounded-pill">{% trans 'Quiz' %}</div></div>
</div>
<div class="col-12 class-item"> <div class="col-12 class-item">
<span class="bg-secondary text-light small px-2 rounded-pill">{% trans 'Quiz' %}</span>
<p>{{ object.category }} {% trans 'quiz' %}, <b>{% trans 'Course:' %}</b> {{ object.course }}</p> <p>{{ object.category }} {% trans 'quiz' %}, <b>{% trans 'Course:' %}</b> {{ object.course }}</p>
<h4><a href="{{ object.get_absolute_url }}"><b>{{ object.title }}</b></a></h4> <h5><a href="{{ object.get_absolute_url }}"><b>{{ object.title }}</b></a></h5>
<p>{{ object.description }}</p> <p>{{ object.description }}</p>
</div><hr> </div><hr>
{% else %} {% else %}
<div class="session-wrapper">
<div class="session"><div class="info-text bg-secondary text-light px-2 rounded-pill">{% trans 'Program' %}</div></div>
</div>
<div class="col-12 col-lg-8 offset-lg-4"> <div class="col-12 col-lg-8 offset-lg-4">
<span class="bg-secondary text-light small px-2 rounded-pill">{% trans 'Program' %}</span>
<a href="{{ object.get_absolute_url }}" class="class-item d-flex">{{ object }} | {{ object|class_name }}</a> <a href="{{ object.get_absolute_url }}" class="class-item d-flex">{{ object }} | {{ object|class_name }}</a>
</div><hr> </div><hr>
<div class="col-12 class-item"> <div class="col-12 class-item">
<h4><a href="{{ object.get_absolute_url }}">{{ object }} | <b>{{ object|class_name }}</b></a></h4> <h5><a href="{{ object.get_absolute_url }}">{{ object }} | <b>{{ object|class_name }}</b></a></h5>
<p>{{ object.description }}</p> <p>{{ object.description }}</p>
</div><hr> </div><hr>
{% endif %} {% endif %}

View File

@ -136,7 +136,7 @@
</form> </form>
<p class="small m-0"> <p class="small m-0">
{% trans 'Read our' %} <a href="#"> {% trans 'Privacy' %} </a> {% trans 'and' %} <a href="#"> {% trans 'Terms of use.' %}' </a> {% trans 'Read our' %} <a href="#"> {% trans 'Privacy' %} </a> {% trans 'and' %} <a href="#"> {% trans 'Terms of use.' %} </a>
<br />SkyLearn &copy; <script>document.write(new Date().getFullYear());</script> <br />SkyLearn &copy; <script>document.write(new Date().getFullYear());</script>
<br /> <br />
</p> </p>