Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
47 changes: 24 additions & 23 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
* vendor/assets/stylesheets directory can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
* compiled file so the styles you add here take precedence over styles defined in any other CSS
* files in this directory. Styles in this file should be added after the last require_* statement.
* It is generally better to create a new file per style scope.
*
*= require_tree .
*= require_self
*/
@import "bootstrap";

@import "bootstrap";
@import "variables";
@import "home";
@import "header";
@import "pagination";
@import "buttons";
@import "form";
@import "progress_bar";
// Abstracts
@import "abstracts/variables";

// Base
@import "base/base";
@import "base/typography";

// Components
@import "components/alerts";
@import "components/buttons";
@import "components/card";
@import "components/form";
@import "components/pagination";
@import "components/progress_bar";
@import "components/stats";

// Layout
@import "layout/header";
@import "layout/footer";

// Pages
@import "pages/home";
@import "pages/login";
75 changes: 75 additions & 0 deletions app/assets/stylesheets/base/_base.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
html, body {
height: 100%;
margin: 0;
color: $text;
font-family: Roboto, sans-serif;
font-size: $font-size;
}

body {
background-color: $bg;
display: flex;
flex-direction: row;

@media (max-width: $breakpoint-lg) {
flex-direction: column;
}
}

main {
flex: 1;
display: flex;
flex-direction: column;
flex-grow: 1;

@media (max-width: $breakpoint-lg) {
flex-direction: column;
}
}

h1, h2, h3 {
color: $text-bold;
}

h1 {
font-size: 2rem;
}

h2 {
font-size: 1.5rem;
}

// To support having the sidebar and no proper header
.not-header {
width: calc(100% - 400px);
margin-left: 400px;
display: flex;
flex-direction: column;
min-height: 100vh;

@media (max-width: $breakpoint-lg) {
width: 100%;
margin: 0;
}
}

.not-header-login {
width: 100%;
display: flex;
flex-direction: column;
min-height: 100vh;
}

.main-content {
display: flex;
flex-direction: column;
flex-grow: 1;
padding: 1rem;
width: 100%;
max-width: $max-page-width;
margin: 0 auto;

@media (max-width: $breakpoint-md) {
padding: 0.5rem;
}
}
24 changes: 24 additions & 0 deletions app/assets/stylesheets/base/_typography.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.font-secondary {
color: $font-secondary-color;
font-size: 0.8em;
}

.text-brand-light {
color: $brand-light
}

.unstyle-link {
text-decoration: none;

&:hover {
text-decoration: underline;
}
}

.icon {
display: inline-block;
background: none;
border: none;
color: $font-color;
padding: 0;
}
22 changes: 22 additions & 0 deletions app/assets/stylesheets/components/_alerts.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.alert-bar {
width: 100%;
padding: 0.5rem;
text-align: center;
margin: 0;
}

.ab-notice {
background-color: $success;
}

.ab-danger {
background-color: $danger;
}

.ab-warning {
background-color: $warning;
}

.text-danger {
color: $danger;
}
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
@import "variables";

.link-button {
color: $font-color;
text-decoration: none;
background-color: $highlight-color;
padding: 2px 10px;
border-radius: 5px;
border: none;
color: $font-color;
text-decoration: none;
background-color: $highlight-color;
padding: 2px 10px;
border-radius: 5px;
border: none;

&:hover {
box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}
&:hover {
box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}
}

.icon-button {
background: none;
background: none !important;
border: none;
color: $font-color;
cursor: pointer;
Expand All @@ -23,7 +21,7 @@
a {
color: inherit;
text-decoration: none;
background: none;
background: none !important;
padding: 0;
border-radius: 0;
}
Expand Down
33 changes: 33 additions & 0 deletions app/assets/stylesheets/components/_card.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
.gt-card {
padding: $roundness;
border-radius: $roundness;
border: 1px solid $line-color;
margin: 0 0 0.5rem;
max-width: 100%;
}

.card-heading {
color: $font-color;
display: flex;
align-items: center;
justify-content: space-between;
h1 {
margin: 0;
}

h2 {
margin: 0;
}

a {
color: $font-color;
text-decoration: none;
background-color: $highlight-color;
padding: 2px 10px;
border-radius: 5px;
}

a:hover{
box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}
}
43 changes: 43 additions & 0 deletions app/assets/stylesheets/components/_form.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
.form-heading {
display: flex;
align-items: center;
gap: 0.5rem;

margin-bottom: 0.5rem;

h1, h2, h3 {
margin: 0;
}
}

.gt-form {
input, select {
height: 34px;
width: 100%;
padding: 0 0.5rem;
outline: none;
border-radius: 5px;
background-color: $line-color;
color: $font-color;
border: none;
margin-bottom: 4px;
}

input[type="submit"] {
background-color: $highlight-color;
border: none;
padding: 2px 10px;
border-radius: 5px;
margin-top: 4px;

&:hover{
box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}
}
}

.form-card-container {
width: 100%;
max-width: 600px;
margin: 0 auto;
}
9 changes: 9 additions & 0 deletions app/assets/stylesheets/components/_pagination.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.pagination-box {
border: 1px solid $background-color;
border-radius: 5px;
text-align: center;
line-height: 30px;
width: 30px;
height: 30px;
margin: 0 5px;
}
26 changes: 26 additions & 0 deletions app/assets/stylesheets/components/_progress_bar.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
.progress-bar {
margin: 0;
padding: 0;
border-radius: 1px;
background-color: $line-color;
height: 3px;

.progress {
padding: 0;
height: 100%;
width: 0;
background-color: $highlight-color;
transition: width 0.3s ease-in-out;
}
}

// Awkward fix for padding issues in grids
.px-12px {
padding-left: 12px;
padding-right: 12px;
}

.mx-12px {
margin-left: 12px;
margin-right: 12px;
}
27 changes: 27 additions & 0 deletions app/assets/stylesheets/components/_stats.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.stats-container {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
text-align: center;
margin-bottom: 0.5rem;

.stat-header {
color: $text;
font-size: 1rem;
}

.stat-content {
color: $brand-light;
font-size: 2rem;
text-decoration: none;

a {
color: inherit;
text-decoration: inherit;
}
}


@media (max-width: $breakpoint-sm) {
grid-template-columns: 1fr;
}
}
21 changes: 0 additions & 21 deletions app/assets/stylesheets/footer.scss

This file was deleted.

Loading
Loading