1
0
Fork 0
mirror of https://github.com/Findus23/acronomy.git synced 2024-09-19 15:33:45 +02:00

split style into components

This commit is contained in:
Lukas Winkler 2020-07-22 14:43:04 +02:00
parent 1e80d7b2a2
commit f407dc4183
Signed by: lukas
GPG key ID: 54DE4D798D244853
10 changed files with 179 additions and 243 deletions

View file

@ -0,0 +1,52 @@
html {
height: 100%;
}
body {
display: flex;
flex-direction: column;
height: 100%;
> .container {
flex: 1 0 auto;
}
}
h1 {
text-align: center;
}
h1.acronym {
font-size: 4rem;
}
.fullName {
text-align: center;
font-size: 2rem;
.al {
transition: color .2s, text-decoration-color .2s;
text-decoration-line: underline;
text-decoration-color: white;
}
&:hover {
.al {
color: green;
text-decoration-color: green;
}
}
}
.aotd, .popular {
flex-direction: column;
}
.cardrow, #autocomplete {
margin-bottom: 2rem;
}

View file

@ -1,51 +0,0 @@
/** from https://getbootstrap.com/docs/4.3/examples/sign-in/signin.css */
html,
body {
height: 100%;
}
body {
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
padding-top: 40px;
padding-bottom: 40px;
background-color: #f5f5f5;
}
.form-signin {
width: 100%;
max-width: 330px;
padding: 15px;
margin: auto;
}
.form-signin .checkbox {
font-weight: 400;
}
.form-signin .form-control {
position: relative;
box-sizing: border-box;
height: auto;
padding: 10px;
font-size: 16px;
}
.form-signin .form-control:focus {
z-index: 2;
}
.form-signin input[type="email"] {
margin-bottom: -1px;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.form-signin input[type="password"] {
margin-bottom: 10px;
border-top-left-radius: 0;
border-top-right-radius: 0;
}

View file

@ -0,0 +1,30 @@
/* https://stackoverflow.com/a/27727359/4398037 */
.CodeMirror {
/* Bootstrap Settings */
box-sizing: border-box;
margin: 0;
font: inherit;
display: block;
width: 100%;
font-size: 14px;
line-height: 1.42857143;
color: #555;
background-color: #fff;
background-image: none;
border: 1px solid #ccc;
border-radius: 4px;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
/* Code Mirror Settings */
font-family: monospace, monospace;
position: relative;
overflow: hidden;
}
.CodeMirror-focused {
/* Bootstrap Settings */
border-color: #66afe9;
outline: 0;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

View file

@ -0,0 +1,9 @@
footer {
margin-top: 1rem;
.navbar-nav {
justify-content: space-between;
width: 100%;
}
}

View file

@ -0,0 +1,16 @@
#letterselect {
span {
cursor: pointer;
user-select: none;
&.als {
color: green;
}
}
}
#letterform {
input[type=text] {
display: none;
}
}

View file

@ -0,0 +1,14 @@
.linkbar {
display: flex;
justify-content: space-between;
a {
display: block;
}
img, svg {
width: 26px;
height: 26px;
padding: 5px;
}
}

View file

@ -0,0 +1,12 @@
.katex img {
display: block;
position: absolute;
width: 100%;
height: inherit;
}
p a {
text-decoration-line: underline;
text-decoration-style: dashed;
}

View file

@ -0,0 +1,19 @@
.card-title {
text-align: center;
}
.card-title img {
max-width: 32px;
height: auto;
}
.card-img-top {
height: auto;
}
.card-body a {
display: block;
text-align: center;
}

View file

@ -0,0 +1,21 @@
.btn-tag {
@include button-size($badge-padding-y, $badge-padding-x, $badge-font-size, $badge-border-radius);
font-weight: $badge-font-weight;
line-height: 1;
}
.tags {
margin-bottom: 2rem;
}
.taglist {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}
.taglist .btn {
font-size: 150%;
margin: 5px;
}

View file

@ -1,5 +1,3 @@
//@import "login";
@import "variables";
@import "node_modules/@trevoreyre/autocomplete-js/dist/style";
@ -44,194 +42,10 @@
@import "node_modules/bootstrap/scss/utilities/api";
.btn-tag {
@include button-size($badge-padding-y, $badge-padding-x, $badge-font-size, $badge-border-radius);
font-weight: $badge-font-weight;
line-height: 1;
}
@import "basestyle";
.accountStatus {
@include media-breakpoint-up(md) {
position: absolute;
top: 20px;
right: 20px;
}
}
h1 {
text-align: center;
}
h1.acronym {
font-size: 4rem;
}
.fullName {
text-align: center;
font-size: 2rem;
.al {
transition: color .2s, text-decoration-color .2s;
text-decoration-line: underline;
text-decoration-color: white;
}
&:hover {
.al {
color: green;
text-decoration-color: green;
}
}
}
#letterselect {
span {
cursor: pointer;
user-select: none;
&.als {
color: green;
}
}
}
#letterform {
input[type=text] {
display: none;
}
}
/*.linkwrapper {*/
/* display: flex;*/
/* flex-direction: column;*/
/*}*/
/*.linkwrapper div {*/
/* display: flex;*/
/* align-items: center;*/
/*}*/
.card-title {
text-align: center;
}
.card-title img {
max-width: 32px;
height: auto;
}
.card-img-top {
height: auto;
}
.card-body a {
display: block;
text-align: center;
}
.linkbar {
display: flex;
justify-content: space-between;
}
.linkbar a {
display: block;
}
.linkbar img, .linkbar svg {
width: 26px;
height: 26px;
padding: 5px;
}
.tags {
margin-bottom: 2rem;
}
.taglist {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}
.taglist .btn {
font-size: 150%;
margin: 5px;
}
/* https://stackoverflow.com/a/27727359/4398037 */
.CodeMirror {
/* Bootstrap Settings */
box-sizing: border-box;
margin: 0;
font: inherit;
display: block;
width: 100%;
font-size: 14px;
line-height: 1.42857143;
color: #555;
background-color: #fff;
background-image: none;
border: 1px solid #ccc;
border-radius: 4px;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
/* Code Mirror Settings */
font-family: monospace, monospace;
position: relative;
overflow: hidden;
}
.CodeMirror-focused {
/* Bootstrap Settings */
border-color: #66afe9;
outline: 0;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
html {
height: 100%;
}
body {
display: flex;
flex-direction: column;
height: 100%;
> .container {
flex: 1 0 auto;
}
}
footer {
margin-top: 1rem;
.navbar-nav {
justify-content: space-between;
width: 100%;
}
}
.aotd, .popular {
flex-direction: column;
}
.katex img {
display: block;
position: absolute;
width: 100%;
height: inherit;
}
p a {
text-decoration-line: underline;
text-decoration-style: dashed;
}
.cardrow, #autocomplete {
margin-bottom: 2rem;
}
@import "components/tags";
@import "components/letterselect";
@import "components/referencecards";
@import "components/linkbar";
@import "components/codemirror";