You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

270 lines
4.3 KiB

:root {
--dark: #1E1B18;
--light: #E3E7F1;
--side: #E3E7F1;
--main: #7391C8;
--main-dark: #52688F;
--main-highlight: #31476d;
}
* {
font-family: 'Open Sans', sans-serif;
color: var(--dark);
}
body {
margin: 0;
padding: 0;
}
input {
text-align: center;
}
button,
#createChart {
background-color: var(--main-dark);
border: none;
color: white;
padding: 1rem 1.5rem;
text-align: center;
text-decoration: none;
display: inline-block;
margin: 0.3rem;
font-size: 1rem;
}
#createChart {
font-size: 1.5rem;
}
button:hover {
background-color: var(--main-highlight);
cursor: pointer;
}
header {
display: flex;
background-color: var(--main-dark);
margin: 0;
}
header #logo {
text-align: center;
flex-basis: 20%;
display: flex;
justify-content: stretch;
}
header nav {
display: flex;
flex-basis: 70%;
justify-content: flex-end;
}
header #homepageLink:hover,
header #chartsLink:hover,
header #docsLink:hover {
background-color: var(--main-highlight);
}
header #user {
flex-basis: 10%;
display: flex;
}
header #user a {
flex-basis: 100%;
text-align: center;
background-color: var(--main);
color: var(--dark);
}
header #user a:hover {
background-color: var(--main-dark);
}
header a {
text-decoration: none;
color: var(--light);
font-weight: 600;
font-size: 1em;
line-height: 1.4em;
padding: 1.4em 2em;
transition: 300ms;
}
header a:hover {
background-color: var(--main-dark);
}
body {
background-color: var(--light);
}
main {
height: calc(100vh - 4.2em);
width: 100%;
display: flex;
padding: 0;
}
h1 {
color: var(--light);
font-size: 1.6em;
margin: 2em 0 0 0;
flex-basis: 100%;
}
h2 {
color: var(--side);
font-size: 1.2em;
}
.loginDiv {
min-width: 300px;
width: 60%;
margin: 2rem auto;
padding: 2rem;
text-align: center;
background-color: var(--main);
}
.loginDiv form {
display: flex;
flex-direction: column;
}
.loginDiv #user div,
.loginDiv form>div {
width: auto;
display: flex;
flex-direction: column;
}
.loginDiv .msg {
color: red;
}
.loginDiv #logoutBtn,
#deleteBtn {
color: red;
}
#accountButtonsDiv {
height: 6rem;
display: flex;
flex-direction: column;
justify-content: flex-end;
}
#logoutBtn {
margin-bottom: 2rem;
}
#logoutBtn:hover,
#deleteBtn:hover {
color: darkred;
}
#myCharts, #indexDiv {
height: 100%;
width: 100%;
margin: 1rem;
text-align: center;
background-color: var(--main);
display: block;
overflow: auto;
}
#createChart {
color: var(--dark);
background-color: green;
padding: 1rem;
transition: 300ms;
}
#createChart:hover {
background-color: darkgreen;
}
#myChartList {
display: flex;
flex-direction: column;
}
#myChartList span {
width: 80%;
margin: 10px 10%;
/*border: 1px solid var(--main-dark);*/
background-color: var(--main-dark);
display: flex;
}
#myChartList span a {
text-decoration: none;
display: inline-block;
height: 100%;
padding: 2rem;
}
#myChartList #editChart {
flex-basis: 90%;
text-align: left;
transition: 300ms;
}
#myChartList #editChart:hover {
background-color: var(--main-highlight);
}
#myChartList #removeChart {
color: red;
display: inline-block;
text-align: middle;
flex-basis: 10%;
transition: 300ms;
}
#myChartList #removeChart:hover {
background-color: var(--main-highlight);
color: red;
transition: 300ms;
}
#indexDiv {
display: block;
overflow: auto;
}
#indexDiv section{
margin-top: 4rem;
}
#indexDiv iframe {
width: 60%;
height: 22rem;
}
#indexDiv li {
list-style-type: none;
margin: 0.5rem;
}
/* Media query for smaller screens */
@media (max-width: 600px) {
header {
flex-direction: column;
justify-content: stretch;
}
header nav {
display: flex;
flex-direction: column;
text-align: center;
}
header #logo a {
width: 100%;
}
}

Powered by TurnKey Linux.