app/assets/stylesheets/application.scss
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/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 styles
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
* file per style scope.
*
*= require_tree .
*= require_self
*/
$theme-colors: (
primary: #6dccc0,
notice: #b1d5a0,
danger: #cc6d79,
// complements primary,
alert: #cc6d79,
secondary: #417a73,
warning: #ccc06d,
);
$pink: #ffb3b3;
$pink-invert: #fff;
@import url("https://fonts.googleapis.com/icon?family=Material+Icons");
@font-face {
font-family: "opensans"; /*a name to be used later*/
src: url("/fonts/opensans/OpenSans-Regular.ttf"); /*URL to font*/
}
@font-face {
font-family: "opensans-bold"; /*a name to be used later*/
src: url("/fonts/opensans/OpenSans-Bold.ttf"); /*URL to font*/
}
@font-face {
font-family: "Ikaros";
src: url("/fonts/ikaros/Ikaros-Regular.otf") format("truetype");
}
@font-face {
font-family: "Poppins";
src: url("/fonts/poppins/Poppins-Regular.ttf") format("truetype");
}
@font-face {
font-family: "FiraMono";
src: url("/fonts/fira-mono/FiraMono-Regular.otf") format("truetype");
}
.justified {
-ms-flex-pack: justify !important;
justify-content: space-between !important;
display: -ms-flexbox !important;
display: flex !important;
}
.justify-content-between {
display: flex;
justify-content: space-between;
}
.w-100 {
width: 100% !important;
}
.dark-background-1 {
background-color: #2f2f2f !important;
strong,
strong:focus {
color: #e0e0e0 !important;
}
strong:hover,
a:hover {
color: #fff !important;
}
}
.dark-background-3 {
background-color: #37474f !important;
strong,
strong:focus {
color: #e0e0e0 !important;
}
strong:hover,
a:hover {
color: #fff !important;
}
}
html,
.dark-background-2 {
background-color: #262626 !important;
strong,
strong:focus {
color: #e0e0e0 !important;
}
strong:hover,
a:hover {
color: #fff;
}
}
.breadcrumb li.is-active a {
color: #aaa !important;
}
.navbar.becomes-transparent {
background-color: #0000 !important;
background: -webkit-linear-gradient(top, #262626, #26262600);
}
.navbar.becomes-transparent.admin {
background: -webkit-linear-gradient(top, #9d4e4e, #26262600);
.navbar-item {
color: white;
}
strong:hover,
a:hover {
color: black !important;
}
}
body {
font-family: "Poppins" !important;
font-size: 1rem !important;
color: #e0e0e0 !important;
}
.navbar-item {
user-select: none;
}
.is-pink {
background-color: $pink !important;
color: $pink-invert !important;
}
.text-center {
text-align: center !important;
}
nav.maintenance {
background-color: #d87f11 !important;
}
img.logo {
height: 50px !important;
width: 30px !important;
}
.logo.login {
height: 100px !important;
width: 100px !important;
}
.google-btn {
color: #e0e0e0;
border: none;
border-radius: 2px;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14),
0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
padding: 10px 25px;
font-size: small;
text-decoration: none !important;
img {
vertical-align: middle;
}
}
.alert {
position: relative;
padding: 0.75rem 1.25rem;
margin-bottom: 1rem;
border: 1px solid transparent;
border-radius: 0.25rem;
}
.material-icons.scale {
font-size: 100%;
}
.material-icons.from-like-button {
font-size: 15px;
padding-right: 0.3rem;
}
.loading {
background-position: center center;
background-image: asset_url("thumb-loading-40.gif");
}
.vertical-center {
min-height: 90vh;
display: flex;
align-items: center;
}
.hide,
.hidden {
display: none !important;
}
.btn {
border-radius: 40px;
}
.pos-inherit {
position: inherit !important;
}
.no-click,
.current {
cursor: default !important;
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none;
}
.noselect {
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently
supported by Chrome and Opera */
}
.no-caret::before,
.no-caret::after {
content: none;
}
.truncate {
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.borderless {
border: none !important;
}
.no-overflow {
overflow: hidden !important;
.progress {
height: 3px !important;
}
}
.no-padding {
padding: 0 !important;
}
.no-outline:focus,
.no-outline:active {
outline: none !important;
box-shadow: none !important;
}
.clickable {
cursor: pointer;
}
.locale-switcher:not(.current):not(.is-loading) {
cursor: pointer;
font-weight: bold;
}
.locale-switcher.current {
text-decoration: underline;
}
.locale-switcher.is-loading {
cursor: progress;
font-weight: normal;
font-style: italic;
}
.wrapper {
position: absolute;
display: table;
width: 100%;
}
.p-absolute {
position: absolute !important;
}
.tanoshimu-login {
img.logo {
margin-bottom: 30px;
width: 150px;
height: 150px;
}
.form-signin,
.form-signup {
width: 90%;
max-width: 330px;
padding: 15px;
margin: 0 auto;
}
.login-messages {
font-weight: bold;
}
.card {
width: 95%;
max-width: 500px;
padding: 40px;
margin: 0 auto;
}
.form-signin .form-control,
.form-signup .form-control {
position: relative;
box-sizing: border-box;
height: auto;
padding: 10px;
font-size: 16px;
}
.form-signin .form-control:focus,
.form-signup .form-control:focus {
z-index: 2;
}
.form-signin input[type="text"],
.form-signup input#user_name {
margin-bottom: -1px;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.form-signin input[type="password"],
.form-signup input#user_password_confirmation {
margin-bottom: 10px;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.form-signup input#user_password {
margin-bottom: -1px;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
}
.padded {
padding: 40px;
}
.padded-bottom {
padding-bottom: 40px;
}
.padded-top {
padding-top: 40px;
}
.padded-left {
padding-left: 40px;
}
.padded-right {
padding-right: 40px;
}
.logo {
user-select: none;
.logo-title {
padding-left: 10px;
font-size: 150%;
font-style: italic;
color: #777 !important;
}
}
.autocomplete {
position: relative;
display: inline-block;
}
.autocomplete-items {
position: absolute;
border: 1px solid #d4d4d4;
border-bottom: none;
border-top: none;
z-index: 99;
/*position the autocomplete items to be the same width as the container:*/
top: 100%;
left: 0;
right: 0;
}
.autocomplete-items div {
padding: 10px;
cursor: pointer;
background-color: #fff;
border-bottom: 1px solid #d4d4d4;
}
.tabs {
li.is-active {
a {
background-color: #262626 !important;
color: #eee;
}
}
li {
a {
color: #eee !important;
}
a:hover {
background-color: #2f2f2f !important;
}
}
}
.pagination-link {
color: #aaa !important;
border-radius: 100% !important;
}
.pagination-next,
.pagination-previous {
color: #aaa !important;
}
.request-id {
color: rgba(255, 255, 255, 0.8);
background-color: rgba(0, 0, 0, 0.2);
}
@media (max-width: 992px) {
.mobile {
display: block;
}
.desktop {
display: none;
}
}
@media (max-width: 992px) {
main {
padding-left: 0;
}
}
@media (max-width: 480px) {
.tanoshimu-login {
img.logo {
margin-bottom: 30px;
width: 80px;
height: 80px;
}
}
.hero-image {
height: 130px;
margin: 30px;
}
.description {
font-size: 70%;
}
h1.show-title {
font-size: 180%;
}
p.welcome-message {
font-size: 70%;
}
input[type="button"],
input[type="submit"] {
width: 50%;
}
.body-content {
padding-top: 5px;
}
h1 {
text-align: center;
}
p.login-form {
margin: 20px 0 0 -20px;
}
a.go-back {
margin: 10px 0 5px 15px;
border: 1px solid black;
padding: 5px;
text-align: left;
}
.desktop {
display: inline;
}
#mobile {
display: inline;
}
#mobile a {
margin: 5px 0 10px 0;
width: 100%;
}
#mobile p.warning {
margin: 10px;
font-size: 60%;
color: red;
}
.desktop {
display: none;
}
.footer {
text-align: center;
font-size: 60%;
}
}