Skip to content

move most css from instr and coach page #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 42 additions & 54 deletions question_queue/static/question_queue/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -95,60 +95,6 @@ thead {
justify-content: center;
}

/* Dark Mode Toggle Button */
.toggle-dark{
position: relative;
display:inline-block;
width: 50px;
height: 34px;
}
/*Hide default html checkbox*/
.toggle-dark input{
opacity: 0;
width: 0;
height: 0;
}

.slider{
position: absolute;
cursor:pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
border-radius: 34px;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}

.slider:before{
position: absolute;
content: "";
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
border-radius: 50%;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}

input:checked + .slider{
background-color: #0285ce;
}

input:focus + .slider{
box-shadow: 0 0 1px #0285ce;
}

input:checked + .slider::before{
-webkit-transform: translateX(17px);
-ms-transform: translateX(17px);
transform: translateX(17px);
}

@media (prefers-color-scheme: dark){
body.dark-mode{
background: #1f1f1f;
Expand All @@ -163,6 +109,48 @@ input:checked + .slider::before{
border: none !important;
color: #cccccc !important;
}
.instr-table{
box-shadow: none;
}

.instr-table tr:nth-child(even){
background-color:#2d2d2d;
color:#cccccc;
}

.instr-table tr:nth-child(odd){
background-color:#222222;
color: #cccccc;
}

.instr-table tbody tr {
box-shadow: 0 0 2px #cccccc;
}

.instr-table tbody tr:hover{
background-color: #000000d2;
}

.instr-table .header{
background-color: #474747;
color: #cccccc;
box-shadow: none;
}

.modal-header{
background-color: #222222;
color: #cccccc;
}

.modal-body {
background-color: #222222;
color: #cccccc;
}

.modal-footer{
background-color: #222222;
color: #cccccc;
}
}

.hidden{
Expand Down
4 changes: 2 additions & 2 deletions question_queue/templates/question_queue/coach.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
crossorigin="anonymous" />
<link rel="shortcut icon" type="image/png" href="{% static 'favicon.ico' %}" >
</head>
<body>
<body class="dark-mode">

<div class="instr-page">
<br>
<h1>Coach Page</h1>
<h1 class="turn-light">Coach Page</h1>
<div class="filter" style="display: flex; flex-direction: row">
<a href="http://127.0.0.1:8000/coach/">Open Questions</a>
<a href="http://127.0.0.1:8000/coach/">Answered Questions</a>
Expand Down
4 changes: 2 additions & 2 deletions question_queue/templates/question_queue/instructor.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
/>
<link rel="shortcut icon" type="image/png" href="{% static 'favicon.ico' %}" >
</head>
<body>
<body class="dark-mode">
<div class="instr-page" align ="center">
<h1>Welcome, {{user}}, to the Instructor page</h1>
<h1 class="turn-light">Welcome, {{user}}, to the Instructor page</h1>
<div class="filter" style="display: flex; flex-direction: row">
<a href="http://127.0.0.1:8000/instructor/">Open Questions</a>
<a href="http://127.0.0.1:8000/instructor/">Answered Questions</a>
Expand Down
4 changes: 2 additions & 2 deletions question_queue/templates/question_queue/question_modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ <h5 class="modal-title" id="{{label_id}}">{{ name|add:"'s question" }}</h5>
data-dismiss="modal"
aria-label="Close"
>
<span aria-hidden="true">&times;</span>
<span class="turn-light" aria-hidden="true">&times;</span>
</button>
</div>
<form method="post">
<div class="modal-body">
{{question_body}}
<hr>
<hr class="hr-turn-light">
{% csrf_token %}
{{ form|crispy }}
<input type="hidden" name="replied_by" value="{{ user }}">
Expand Down