2025-02-28 12:45:45 +01:00

637 lines
11 KiB
SCSS

$blue-1: #f5faff;
$gray-1: #e9eaeb;
$gray-2: #c4c4c4;
$gray-3: #888;
$gray-4: #535862;
$gray-5: #4a4a4a;
$red: #dc1f26;
$light-gray: #888;
$black: #181d27;
$blue: #1570ef;
$light-blue: #2e90fa;
$green: #009951;
@mixin a-tag {
text-decoration: none;
&:visited {
text-decoration: none;
}
}
h1 {
font-size: 2.25em;
font-weight: bold;
}
h2 {
font-size: 1.75em;
font-weight: bold;
}
h3 {
font-size: 1.5em;
font-weight: bold;
}
h4 {
font-size: 1em;
font-weight: bold;
}
* {
box-sizing: border-box;
}
html {
font-family: Arial;
height: 100%;
}
body {
margin: 0;
}
main {
display: grid;
grid-template-columns: 20% 80%;
@media (max-width: 900px) {
grid-template-columns: 10% 90%;
}
nav {
border-right: 1px solid $gray-2;
box-shadow: 2px 0px $gray-1;
display: flex;
flex-direction: column;
height: 100%;
header {
flex: 0 0 5.5em;
border-bottom: 1px solid $gray-2;
display: flex;
align-items: center;
@media (max-width: 900px) {
justify-content: center;
}
img {
margin-left: 1.25em;
width: 2em;
height: auto;
@media (max-width: 900px) {
margin: 0;
}
}
h2 {
color: $red;
margin-left: 0.5em;
@media (max-width: 900px) {
display: none;
}
}
}
menu {
padding-inline-start: 0.75em;
@media (max-width: 900px) {
padding-inline-start: 0;
}
a {
@include a-tag();
display: flex;
align-items: center;
color: $gray-5;
height: 3em;
margin: 0 1em 1em 0;
padding-left: 1em;
border-radius: 0.5em;
@media (max-width: 900px) {
justify-content: center;
}
&:hover {
background-color: $blue-1;
}
img {
width: 1.25em;
}
.sidebar-tab-logo-selected {
filter: invert(39%) sepia(98%) saturate(3884%)
hue-rotate(205deg) brightness(95%) contrast(96%);
}
h4 {
margin-left: 1em;
@media (max-width: 900px) {
display: none;
}
}
}
.sidebar-tab-selected {
color: $blue;
}
}
}
section {
display: flex;
flex-direction: column;
margin: 2em;
header {
display: flex;
flex-direction: column;
.info {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
height: 4em;
@media (max-width: 600px) {
height: 9em;
flex-direction: column;
align-items: start;
}
.info-container {
display: flex;
flex-direction: column;
justify-content: space-between;
.page-title {
font-size: 30px;
font-weight: 600;
text-transform: capitalize;
}
.page-description {
color: $gray-4;
}
}
.page-button {
display: flex;
justify-content: center;
@media (max-width: 600px) {
width: 100%;
justify-content: end;
}
.installed {
display: flex;
align-items: center;
width: 6em;
justify-content: space-around;
color: $green;
font-size: 1em;
}
button {
width: 9em;
height: 2.5em;
background-color: $light-blue;
border: none;
border-radius: 0.5em;
color: $gray-1;
font-size: 1em;
cursor: pointer;
}
}
}
.search {
display: flex;
justify-content: flex-end;
align-items: center;
margin: 1.25em 0em;
.search-input {
font-size: 1em;
height: 3em;
width: 16em;
border-radius: 10px;
padding-left: 2.5em;
border: 1px solid $gray-2;
@media (max-width: 600px) {
width: 75%;
}
}
img {
position: relative;
left: 2em;
}
}
#warning-main {
display: none;
border: 1px solid $gray-2;
border-radius: 0.5em;
align-items: center;
font-size: 1.25em;
color: $gray-4;
padding: 0.5em 1em;
margin-bottom: 2em;
span {
margin-left: 1em;
}
img {
width: 2em;
}
}
}
section {
margin: 0em;
.installed-plugins-list {
border: 1px solid $gray-2;
border-radius: 1em;
display: flex;
flex-direction: column;
.installed-plugin {
display: flex;
justify-content: space-between;
padding: 1em 2em;
border-bottom: 1px solid $gray-2;
&:last-child {
border-bottom: none;
}
.details {
display: flex;
flex-direction: column;
justify-content: center;
flex-grow: 1;
width: 80%;
.name {
font-size: 1.25em;
a {
@include a-tag();
text-transform: capitalize;
color: $blue;
}
}
.author {
font-size: 1.15em;
color: $gray-4;
}
.description {
font-size: 1em;
color: $black;
width: 80%;
@media (max-width: 825px) {
display: none;
}
p {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
}
.warning {
display: none;
margin-right: 2em;
img {
width: 2.5em;
}
}
}
}
.store-plugins {
display: flex;
flex-direction: column;
.plugins-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 2em;
.plugin {
border: 1px solid $gray-2;
border-radius: 1em;
display: flex;
flex-direction: column;
width: 26em;
padding: 1em;
justify-content: space-between;
flex: 1 1 calc(30% - 14px);
min-width: 250px;
.header {
display: flex;
flex-direction: row;
justify-content: space-between;
margin: 0px;
height: 4em;
.title {
display: flex;
flex-direction: column;
text-transform: capitalize;
justify-content: space-around;
.name {
a {
color: $blue;
text-decoration: none;
font-size: 1.75em;
&:visited {
text-decoration: none;
}
}
}
.author {
font-size: 1em;
color: $gray-4;
}
}
.status {
img {
width: 1.5em;
}
}
}
.body {
p {
width: 100%;
height: auto;
display: -webkit-box;
-webkit-line-clamp: 3; // Limit to 3 lines
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
white-space: normal;
}
}
.footer {
padding: 0em;
button {
width: 5em;
height: 2em;
background-color: $light-blue;
border: none;
border-radius: 0.5em;
color: white;
font-size: 1em;
cursor: pointer;
margin: 0em 0.5em;
}
}
}
}
.pagination-container {
display: flex;
justify-content: flex-end;
padding: 0em 2em;
margin-top: 2em;
.pagination {
display: flex;
justify-content: space-between;
border: 1px solid $gray-2;
border-radius: 0.5em;
align-items: center;
a {
@include a-tag();
border-right: 1px solid $gray-2;
&:last-child {
border: none;
}
}
div {
cursor: pointer;
height: 2.5em;
align-content: center;
width: 3.5em;
text-align: center;
}
}
}
}
.status {
display: flex;
align-items: center;
padding: 1.5em 0em;
border-top: 1px solid $gray-1;
border-bottom: 1px solid $gray-1;
.status-text {
width: 25em;
font-weight: 600;
font-size: 1.25em;
}
.switch-text {
margin-left: 1em;
}
}
.config {
display: flex;
flex-direction: column;
.item {
display: flex;
margin-bottom: 1em;
align-items: center;
height: 3em;
div {
height: 100%;
font-weight: 600;
width: 25em;
}
input {
border: 1px solid $gray-3;
border: 1px solid #888;
padding: 0.75em;
border-radius: 0.5em;
font-size: 1em;
margin-left: 1em;
width: 25em;
}
button {
width: 4em;
height: 2em;
background-color: $light-blue;
border: none;
border-radius: 0.5em;
color: white;
font-size: 1em;
cursor: pointer;
margin: 0em 0.5em;
}
}
}
.tutor-logs-container {
#tutor-logs {
width: 100%;
background-color: black;
color: white;
padding: 2em;
border-radius: 1em;
font-family: inherit;
line-height: 1.5em;
white-space: pre-wrap;
word-wrap: break-word;
overflow-y: auto;
height: 100%;
}
}
}
}
}
.modal-container {
background-color: rgba(0, 0, 0, 0.3);
/* Center modal container */
display: flex;
align-items: center;
justify-content: center;
position: fixed;
opacity: 0; /* to be hidden by default */
pointer-events: none; /* so we can click the modal trigger */
top: 0;
left: 0;
height: 100vh; /* =100% of viewport height */
width: 100vw; /* = 100% of viewport width */
transition: opacity 0.3s ease;
&.show {
pointer-events: auto; /* set back the default value */
opacity: 1;
}
.modal-content {
background-color: #fff;
border-radius: 2em;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
padding: 30px 50px;
width: 37.5em;
height: 18em;
max-width: 100%;
text-align: center;
display: flex;
flex-direction: column;
justify-content: space-between;
.modal-header {
display: flex;
justify-content: space-between;
button {
background: none;
border: none;
cursor: pointer;
}
}
.modal-body {
display: flex;
flex-direction: column;
align-items: flex-start;
text-align: left;
h3 {
color: $black;
margin-bottom: 0px;
}
p {
color: $gray-4;
}
}
.modal-footer {
display: flex;
justify-content: flex-end;
margin-top: 1em;
button {
cursor: pointer;
border-radius: 0.5em;
padding: 0.5em 1em;
}
.close-modal-button {
background: none;
border: 1px solid #888;
color: $black;
padding: 0.5em 1em;
margin-right: 1em;
font-size: 1em;
}
.run_modal_button {
background: none;
border: none;
background-color: $light-blue;
color: $gray-1;
font-size: 1em;
}
}
}
}
.form-switch {
height: 100%;
display: flex;
align-items: center;
.switch {
position: relative;
display: inline-block;
width: 3.5em;
height: 1.75em;
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: 0.4s;
transition: 0.4s;
&:before {
position: absolute;
content: "";
height: 1.5em;
width: 1.5em;
left: 0.25em;
bottom: 0.125em;
background-color: white;
-webkit-transition: 0.4s;
transition: 0.4s;
}
}
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;
}
input {
opacity: 0;
width: 0;
height: 0;
&:checked + .slider {
background-color: #2196f3;
}
&:focus + .slider {
box-shadow: 0 0 1px #2196f3;
}
&:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
}
}
}