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:
parent
1e80d7b2a2
commit
f407dc4183
10 changed files with 179 additions and 243 deletions
52
static/scss/_basestyle.scss
Normal file
52
static/scss/_basestyle.scss
Normal 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;
|
||||||
|
}
|
|
@ -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;
|
|
||||||
}
|
|
30
static/scss/components/codemirror.scss
Normal file
30
static/scss/components/codemirror.scss
Normal 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;
|
||||||
|
}
|
9
static/scss/components/footer.scss
Normal file
9
static/scss/components/footer.scss
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
|
||||||
|
footer {
|
||||||
|
margin-top: 1rem;
|
||||||
|
|
||||||
|
.navbar-nav {
|
||||||
|
justify-content: space-between;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
16
static/scss/components/letterselect.scss
Normal file
16
static/scss/components/letterselect.scss
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
#letterselect {
|
||||||
|
span {
|
||||||
|
cursor: pointer;
|
||||||
|
user-select: none;
|
||||||
|
|
||||||
|
&.als {
|
||||||
|
color: green;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#letterform {
|
||||||
|
input[type=text] {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
14
static/scss/components/linkbar.scss
Normal file
14
static/scss/components/linkbar.scss
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
.linkbar {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
|
||||||
|
a {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
img, svg {
|
||||||
|
width: 26px;
|
||||||
|
height: 26px;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
}
|
12
static/scss/components/md_text.scss
Normal file
12
static/scss/components/md_text.scss
Normal 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;
|
||||||
|
}
|
19
static/scss/components/referencecards.scss
Normal file
19
static/scss/components/referencecards.scss
Normal 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;
|
||||||
|
}
|
21
static/scss/components/tags.scss
Normal file
21
static/scss/components/tags.scss
Normal 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;
|
||||||
|
}
|
|
@ -1,5 +1,3 @@
|
||||||
//@import "login";
|
|
||||||
|
|
||||||
@import "variables";
|
@import "variables";
|
||||||
|
|
||||||
@import "node_modules/@trevoreyre/autocomplete-js/dist/style";
|
@import "node_modules/@trevoreyre/autocomplete-js/dist/style";
|
||||||
|
@ -44,194 +42,10 @@
|
||||||
|
|
||||||
@import "node_modules/bootstrap/scss/utilities/api";
|
@import "node_modules/bootstrap/scss/utilities/api";
|
||||||
|
|
||||||
.btn-tag {
|
@import "basestyle";
|
||||||
@include button-size($badge-padding-y, $badge-padding-x, $badge-font-size, $badge-border-radius);
|
|
||||||
font-weight: $badge-font-weight;
|
|
||||||
line-height: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.accountStatus {
|
@import "components/tags";
|
||||||
@include media-breakpoint-up(md) {
|
@import "components/letterselect";
|
||||||
position: absolute;
|
@import "components/referencecards";
|
||||||
top: 20px;
|
@import "components/linkbar";
|
||||||
right: 20px;
|
@import "components/codemirror";
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue