forked from dbroqua/MusicTopus
{WIP} Bulma => Knacss (add album)
This commit is contained in:
parent
5b0f5a69c4
commit
21a184bf8d
7 changed files with 321 additions and 154 deletions
16
sass/ajouter-un-album.scss
Normal file
16
sass/ajouter-un-album.scss
Normal file
|
@ -0,0 +1,16 @@
|
|||
.ajouter-un-album {
|
||||
span.item {
|
||||
margin-right: 0.6rem;
|
||||
|
||||
&::after {
|
||||
content: ",";
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
&::after {
|
||||
content: "";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,5 +1,15 @@
|
|||
.field {
|
||||
padding-top: .6rem;
|
||||
|
||||
&.has-addons {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
|
||||
.button {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
label {
|
||||
font-weight: 800;
|
||||
}
|
||||
|
@ -24,6 +34,8 @@
|
|||
white-space: nowrap;
|
||||
border-width: 1px;
|
||||
margin-bottom: .5rem;
|
||||
background-color: #fff;
|
||||
border-color: #dbdbdb;
|
||||
|
||||
&.is-danger {
|
||||
background-color: #f14668;
|
||||
|
@ -48,4 +60,14 @@
|
|||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
&.is-primary {
|
||||
background-color: #48c78e;
|
||||
border-color: transparent;
|
||||
color: #fff;
|
||||
|
||||
&:hover {
|
||||
background-color: #3ec487;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -15,5 +15,6 @@ body {
|
|||
|
||||
a {
|
||||
color: #485fc7;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
|
@ -28,5 +28,8 @@
|
|||
@import './global';
|
||||
@import './navbar';
|
||||
@import './forms';
|
||||
@import './table';
|
||||
@import './modal';
|
||||
@import './home';
|
||||
@import './connexion';
|
||||
@import './connexion';
|
||||
@import './ajouter-un-album';
|
124
sass/modal.scss
Normal file
124
sass/modal.scss
Normal file
|
@ -0,0 +1,124 @@
|
|||
.modal {
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
align-items: center;
|
||||
display: none;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
position: fixed;
|
||||
z-index: 40;
|
||||
|
||||
&.is-visible {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.modal-background {
|
||||
background-color: rgba(10,10,10,.86);
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.modal-card {
|
||||
position: relative;
|
||||
width: 300px;
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-height: calc(100vh - 40px);
|
||||
overflow: hidden;
|
||||
|
||||
@include respond-to("small-up") {
|
||||
width: 560px;
|
||||
}
|
||||
@include respond-to("medium-up") {
|
||||
width: 980px;
|
||||
}
|
||||
@include respond-to("large-up") {
|
||||
width: 1200;
|
||||
}
|
||||
|
||||
|
||||
|
||||
header,
|
||||
footer {
|
||||
align-items: center;
|
||||
background-color: #f5f5f5;
|
||||
display: flex;
|
||||
flex-shrink: 0;
|
||||
justify-content: flex-start;
|
||||
padding: 20px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
header {
|
||||
border-bottom: 1px solid #dbdbdb;
|
||||
border-top-left-radius: 6px;
|
||||
border-top-right-radius: 6px;
|
||||
justify-content: space-between;
|
||||
font-size: 1.5rem;
|
||||
|
||||
button {
|
||||
user-select: none;
|
||||
background-color: rgba(10,10,10,.2);
|
||||
border: none;
|
||||
border-radius: 9999px;
|
||||
cursor: pointer;
|
||||
pointer-events: auto;
|
||||
display: inline-block;
|
||||
flex-grow: 0;
|
||||
flex-shrink: 0;
|
||||
font-size: 0;
|
||||
height: 20px;
|
||||
max-height: 20px;
|
||||
max-width: 20px;
|
||||
min-height: 20px;
|
||||
min-width: 20px;
|
||||
outline: none;
|
||||
position: relative;
|
||||
width: 20px;
|
||||
|
||||
&::before,
|
||||
&::after {
|
||||
background-color: #fff;
|
||||
content: "";
|
||||
display: block;
|
||||
left: 50%;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translateX(-50%) translateY(-50%) rotate(45deg);
|
||||
transform-origin: center center;
|
||||
}
|
||||
&::before {
|
||||
height: 2px;
|
||||
width: 50%;
|
||||
}
|
||||
&::after {
|
||||
height: 50%;
|
||||
width: 2px;
|
||||
}
|
||||
}
|
||||
}
|
||||
section {
|
||||
background-color: #fff;
|
||||
flex-grow: 1;
|
||||
flex-shrink: 1;
|
||||
overflow: auto;
|
||||
padding: 20px;
|
||||
}
|
||||
footer {
|
||||
border-bottom-left-radius: 6px;
|
||||
border-bottom-right-radius: 6px;
|
||||
border-top: 1px solid #dbdbdb;
|
||||
|
||||
.button:not(:last-child) {
|
||||
margin-right: .5em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
24
sass/table.scss
Normal file
24
sass/table.scss
Normal file
|
@ -0,0 +1,24 @@
|
|||
table {
|
||||
color: #363636;
|
||||
|
||||
th, td {
|
||||
padding: .5em .75em;
|
||||
border-bottom: 1px solid #dbdbdb;
|
||||
}
|
||||
|
||||
th {
|
||||
border-bottom-width: 2px;
|
||||
}
|
||||
|
||||
tr:nth-child(2n) {
|
||||
background-color: #fafafa;
|
||||
}
|
||||
|
||||
tbody {
|
||||
tr {
|
||||
&:hover {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue