Align labels to the top (#989)

* Align labels to the top

* Oops.

* Another oops. (last 2 related, unsaved edits...)

* Small CSS adjustments (misc.)
This commit is contained in:
Jaco Greeff 2019-04-12 00:01:58 +02:00 committed by GitHub
parent 8959236063
commit db21bb51e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 6 deletions

View File

@ -7,6 +7,10 @@
to { opacity: 1; }
}
header > .explorer--BlockHeader {
box-shadow: none;
}
.explorer--BlockHeader {
animation: fadein 1s;

View File

@ -24,7 +24,7 @@ const defaultLabel: any = (// node?
);
const Wrapper = styled.div`
align-items: center;
align-items: flex-start;
display: flex;
flex: 1 1;
text-align: left;
@ -46,7 +46,11 @@ const Wrapper = styled.div`
}
> label {
align-items: center;
display: flex;
flex: 0 0 15rem;
justify-content: flex-end;
min-height: 2.715rem; /* more-or-less 2 lines with adjustments, 38px as per input box */
min-width: 15rem;
padding-right: 0.5rem;
position: relative;

View File

@ -60,13 +60,14 @@ main > section {
margin-bottom: 2em;
}
header > article {
background: transparent;
}
article {
/*background: white;
border: 1px solid #f2f2f2;
border-left-width: 0.25rem;*/
border: 0 solid #fafafa;
border-radius: 0.25rem;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
/*box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);*/
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
margin: 0.25rem;
padding: 1.25rem 1.5rem;
text-align: left;