596 lines
10 KiB
SCSS
596 lines
10 KiB
SCSS
$blue-1: #f5faff;
|
|
$gray-1: #e9eaeb;
|
|
$gray-2: #c4c4c4;
|
|
$edly-logo-red: #dc1f26;
|
|
$dark-gray: #4a4a4a;
|
|
$gray: #535862;
|
|
$light-gray: #888;
|
|
$black: #181d27;
|
|
$blue: #1570ef;
|
|
$light-blue: #2e90fa;
|
|
$green: #009951;
|
|
|
|
@mixin a-tag {
|
|
text-decoration: none;
|
|
|
|
&:visited {
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
html {
|
|
font-family: Arial;
|
|
height: 100%;
|
|
}
|
|
body {
|
|
margin: 0;
|
|
}
|
|
.main-container {
|
|
display: flex;
|
|
.sidebar {
|
|
flex: 0 0 19em;
|
|
border-right: 1px solid $gray-2;
|
|
box-shadow: 2px 0px $gray-1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 90vh;
|
|
.section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-start;
|
|
height: 100%;
|
|
.header {
|
|
flex: 0 0 6em;
|
|
border-bottom: 1px solid $gray-2;
|
|
display: flex;
|
|
align-items: center;
|
|
.image {
|
|
margin-left: 2em;
|
|
width: 2em;
|
|
img {
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
}
|
|
.text {
|
|
font-size: 2rem;
|
|
color: $edly-logo-red;
|
|
font-weight: bold;
|
|
margin-left: 0.25em;
|
|
}
|
|
}
|
|
.content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
div {
|
|
flex: 0 0 8em;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-evenly;
|
|
margin-top: 1em;
|
|
a {
|
|
@include a-tag();
|
|
list-style: none;
|
|
color: $dark-gray;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
margin: 0em 1em;
|
|
border-radius: 0.5em;
|
|
&:hover {
|
|
background-color: $blue-1;
|
|
}
|
|
li {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0.5em 1em;
|
|
span {
|
|
margin-left: 0.5em;
|
|
}
|
|
.sidebar-tab-logo-selected {
|
|
filter: invert(39%) sepia(98%) saturate(3884%)
|
|
hue-rotate(205deg) brightness(95%)
|
|
contrast(96%);
|
|
}
|
|
}
|
|
|
|
.sidebar-tab-selected {
|
|
color: $blue;
|
|
background-color: $blue-1;
|
|
border-radius: inherit;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.workspace {
|
|
flex-grow: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
.header {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin: 2em;
|
|
.header-bar {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
height: 4.5em;
|
|
.info-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
height: 100%;
|
|
.page-title {
|
|
font-size: 30px;
|
|
font-weight: 600;
|
|
text-transform: capitalize;
|
|
}
|
|
.page-description {
|
|
font-size: 1.25em;
|
|
color: $gray;
|
|
}
|
|
}
|
|
|
|
.page-button {
|
|
display: flex;
|
|
justify-content: center;
|
|
|
|
.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-container {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
margin-top: 3em;
|
|
|
|
.search-input {
|
|
font-size: 1em;
|
|
height: 3em;
|
|
width: 20em;
|
|
border-radius: 10px;
|
|
padding-left: 2.5em;
|
|
border: 1px solid $gray-2;
|
|
}
|
|
|
|
img {
|
|
position: relative;
|
|
left: 2em;
|
|
}
|
|
}
|
|
}
|
|
.content {
|
|
flex-grow: 1;
|
|
margin: 0em 2em;
|
|
#warning-main {
|
|
display: none;
|
|
border: 1px solid $gray-2;
|
|
border-radius: 0.5em;
|
|
align-items: center;
|
|
font-size: 1.25em;
|
|
color: $gray;
|
|
margin-bottom: 1em;
|
|
padding: 0.5em 1em;
|
|
span {
|
|
margin-left: 1em;
|
|
}
|
|
|
|
img {
|
|
width: 2em;
|
|
}
|
|
}
|
|
.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;
|
|
.name {
|
|
font-size: 1.25em;
|
|
a {
|
|
@include a-tag();
|
|
text-transform: capitalize;
|
|
color: $blue;
|
|
}
|
|
}
|
|
.author {
|
|
font-size: 1.15em;
|
|
color: $gray;
|
|
}
|
|
.description {
|
|
font-size: 1em;
|
|
color: $black;
|
|
p {
|
|
width: 50em;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
}
|
|
}
|
|
.warning {
|
|
display: none;
|
|
margin-right: 2em;
|
|
img {
|
|
width: 2.5em;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.store-plugins {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
|
|
.plugin {
|
|
border: 1px solid $gray-2;
|
|
border-radius: 1em;
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 26em;
|
|
margin-bottom: 1.5em;
|
|
padding: 1em;
|
|
justify-content: space-between;
|
|
|
|
.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;
|
|
}
|
|
}
|
|
|
|
.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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.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 $light-gray;
|
|
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%;
|
|
}
|
|
}
|
|
}
|
|
.footer {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
padding: 0em 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;
|
|
}
|
|
}
|
|
}
|
|
.void {
|
|
border-top: 1px solid $gray-2;
|
|
margin-top: 3em;
|
|
height: 3em;
|
|
}
|
|
}
|
|
}
|
|
|
|
.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;
|
|
}
|
|
}
|
|
|
|
.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);
|
|
}
|
|
}
|
|
}
|
|
}
|