Move all styles to style.scss
This commit is contained in:
parent
efdd08fe58
commit
7c7376c7ab
2
static/css/style.min.css
vendored
2
static/css/style.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -139,6 +139,7 @@ body {
|
||||
transition: 0.3s;
|
||||
|
||||
.nav-wrapper {
|
||||
// height: 56px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
@ -1134,3 +1135,169 @@ a {
|
||||
.activities ul li {
|
||||
list-style-type: disc;
|
||||
}
|
||||
|
||||
.top-side {
|
||||
background-size: cover;
|
||||
background-position: top center;
|
||||
}
|
||||
|
||||
.color-indicator {
|
||||
display: inline-block;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.bg-purple {
|
||||
background-color: #6f42c1;
|
||||
}
|
||||
|
||||
.card-header-ne {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.card-header-ne .title {
|
||||
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 {
|
||||
color: red;
|
||||
}
|
||||
|
||||
a {
|
||||
color: black;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.user-picture {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
border: 3px solid #fff;
|
||||
margin-top: -50px;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
table .info {
|
||||
margin-left: -240px;
|
||||
}
|
||||
|
||||
/* Specific to the .dashboard-description class */
|
||||
.dashboard-description strong {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* Adjustments for headers within cards */
|
||||
.card .h5 {
|
||||
font-size: 1.25rem;
|
||||
color: #333;
|
||||
margin-top: 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 {
|
||||
color: red;
|
||||
}
|
||||
|
||||
a {
|
||||
color: black;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.bg-light-warning {
|
||||
background-color: rgb(252, 217, 111) !important;
|
||||
}
|
||||
|
||||
#progress-main {
|
||||
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 {
|
||||
display: block;
|
||||
border-left: 4px solid #6cbd45;
|
||||
padding: 1rem !important;
|
||||
background: #f8f9fa;
|
||||
border-radius: 3px;
|
||||
box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3);
|
||||
transition: 0.5s;
|
||||
}
|
||||
.class-item p {
|
||||
padding: 2px;
|
||||
margin: 0;
|
||||
color: #b4b4b4;
|
||||
transition: 0.5s;
|
||||
}
|
||||
.class-item a {
|
||||
padding: 2px;
|
||||
color: #343a40;
|
||||
text-decoration: none;
|
||||
transition: 0.5s;
|
||||
}
|
||||
.class-item:hover {
|
||||
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);
|
||||
}
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
|
||||
<body>
|
||||
{% block sidebar %}
|
||||
{% include 'aside.html' %}
|
||||
{% include 'sidebar.html' %}
|
||||
{% endblock %}
|
||||
|
||||
{% block maincontent %}
|
||||
|
||||
@ -5,30 +5,6 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
<style>
|
||||
.color-indicator {
|
||||
display: inline-block;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.bg-purple {
|
||||
background-color: #6f42c1;
|
||||
}
|
||||
|
||||
.card-header-ne {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.card-header-ne .title {
|
||||
vertical-align: middle;
|
||||
}
|
||||
</style>
|
||||
|
||||
<nav style="--bs-breadcrumb-divider: '>';" aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item active" aria-current="page">{% trans 'Home' %}</li>
|
||||
|
||||
@ -1,36 +1,5 @@
|
||||
{% block content %}
|
||||
{% load i18n %}
|
||||
<style>
|
||||
.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 {
|
||||
color: red;
|
||||
}
|
||||
|
||||
a {
|
||||
color: black;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<p class="title-1">{% trans 'Lecturers' %}</p>
|
||||
|
||||
|
||||
@ -1,33 +1,6 @@
|
||||
{% block content %}
|
||||
{% load i18n %}
|
||||
|
||||
<style>
|
||||
.user-picture {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
border: 3px solid #fff;
|
||||
margin-top: -50px;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
table .info{
|
||||
margin-left: -240px;
|
||||
}
|
||||
|
||||
/* Specific to the .dashboard-description class */
|
||||
.dashboard-description strong {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* Adjustments for headers within cards */
|
||||
.card .h5 {
|
||||
font-size: 1.25rem;
|
||||
color: #333;
|
||||
margin-top: 15px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
</style>
|
||||
|
||||
{% if user.is_authenticated %}
|
||||
<div class="row">
|
||||
<div class="card-header">
|
||||
|
||||
@ -1,36 +1,5 @@
|
||||
{% block content %}
|
||||
{% load i18n %}
|
||||
<style>
|
||||
.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 {
|
||||
color: red;
|
||||
}
|
||||
|
||||
a {
|
||||
color: black;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<p class="title-1">{% trans 'Students' %}</p>
|
||||
|
||||
|
||||
@ -13,6 +13,8 @@
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<p class="title-1"><i class="fas fa-record-vinyl"></i>{% trans 'Quiz Progress Rec' %}</p>
|
||||
|
||||
{% if cat_scores %}
|
||||
|
||||
<div class="header-title text-center">{% trans "Question Category Scores" %}</div>
|
||||
@ -53,7 +55,11 @@
|
||||
|
||||
<div class="header-title-xl">{% trans "Previous exam papers" %}</div>
|
||||
<p class="lead fw-bold">
|
||||
{% trans "Below are the results of exams that you have sat." %}
|
||||
{% if request.user.is_superuser %}
|
||||
{% trans "Student exam results" %}
|
||||
{% else %}
|
||||
{% trans "Below are the results of exams that you have sat" %}
|
||||
{% endif %}
|
||||
</p>
|
||||
<div class="text-light bg-secondary mb-2 p-1">{% trans 'Total complete exams:' %} {{ exams_counter }}</div>
|
||||
<div class="table-responsive">
|
||||
|
||||
@ -5,7 +5,6 @@
|
||||
{% load static %}
|
||||
|
||||
{% block content %}
|
||||
<style>.bg-light-warning{background-color: rgb(252, 217, 111) !important;}</style>
|
||||
|
||||
<nav style="--bs-breadcrumb-divider: '>';" aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<div class="row col-12 justify-content-between">
|
||||
<div class="row col-12 justify-content-between">{{ sitting.quiz }}
|
||||
<div class="header-title-md">{% trans "Quiz title" %}: {{ sitting.quiz.title }}</div>
|
||||
<em class="info-text title-danger">{% trans "Category" %}: {{ sitting.quiz.category }}</em>
|
||||
</div>
|
||||
@ -59,7 +59,7 @@
|
||||
<td>
|
||||
<form action="" method="POST">{% csrf_token %}
|
||||
<input type="hidden" name="qid" value="{{ question.id }}">
|
||||
<button type="submit" class="btn btn-warning">{% trans "Toggle whether correct" %}</button>
|
||||
<button type="submit" class="btn btn-sm btn-secondary">{% trans "Toggle whether correct" %}</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
@ -30,8 +30,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>#progress-main{display: none;}</style>
|
||||
|
||||
<div class="container" id="progress-main">
|
||||
{% if previous.answers %}
|
||||
<div class="card bg-white p-3">
|
||||
|
||||
@ -11,8 +11,6 @@
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<div class="container">
|
||||
|
||||
<div class="title-1"><i class="fas fa-calendar-alt"></i>{% trans "List of complete exams" %}</div>
|
||||
|
||||
{% for student in students %}<h3>{{ student.student.user.get_full_name }}</h3>{% endfor %}
|
||||
@ -62,5 +60,4 @@
|
||||
{% else %}
|
||||
<p class="p-3 bg-light">{% trans "No completed exams for you" %}.</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
@ -13,26 +13,6 @@
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<style>
|
||||
.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 {
|
||||
display: block;
|
||||
border-left: 4px solid #6cbd45;
|
||||
padding: 1rem !important;
|
||||
background: #f8f9fa;
|
||||
border-radius: 3px;
|
||||
box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3);
|
||||
transition: .5s;
|
||||
}
|
||||
.class-item p{padding: 2px; margin: 0; color: #b4b4b4; transition: .5s;}
|
||||
.class-item a{padding: 2px; color: #343a40; text-decoration: none; transition: .5s;}
|
||||
.class-item:hover{
|
||||
transform: translateX(15px);
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="card p-3" style="box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3); border-radius: 10px;">
|
||||
<h5 class="text-muted m-0">{{ count }} {% trans 'result' %}{{ count|pluralize }} {% trans 'for' %} <b><em class="text-orange"> {{ query }}</em></b></h5>
|
||||
<hr>
|
||||
|
||||
@ -1,13 +1,6 @@
|
||||
{% load static %}
|
||||
{% load i18n %}
|
||||
|
||||
<style>
|
||||
.top-side {
|
||||
background-size: cover;
|
||||
background-position: top center;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div id="side-nav">
|
||||
<div class="main-menu">
|
||||
<div class="top-side text-center py-4" style="background-image: url({% static 'img/dotted.jpg' %});">
|
||||
@ -18,14 +18,6 @@
|
||||
<p class="title-1">{{ video.title }}</p>
|
||||
<br><br>
|
||||
|
||||
<style>
|
||||
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);
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="col-md-10 mx-auto d-block">
|
||||
<div class=""><video src="{{ video.video.url }}" controls ></video></div>
|
||||
<p><i class="fas fa-calendar"></i> {{ video.timestamp|timesince }} {% trans 'ago' %}</p>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user