1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

editor scrollbars

This commit is contained in:
muerwre 2019-07-29 18:51:10 +07:00
parent e687a3f5f3
commit 14c5f67d49
15 changed files with 349 additions and 18 deletions

View file

@ -1,6 +1,5 @@
import * as React from 'react';
const style = require('./style.scss');
import * as styles from './styles.scss';
interface ITextInputProps {
type?: 'text' | 'password',
@ -19,16 +18,16 @@ export const TextInput: React.FunctionComponent<ITextInputProps> = ({
value='',
}) => (
<div
className={style.wrapper}
className={styles.wrapper}
>
{
label &&
<div className={style.label}>{label}</div>
}
<div className={style.container}>
<div className={styles.container}>
{
label &&
<div className={styles.label}>{label}</div>
}
<input
placeholder={placeholder}
className={style.input}
className={styles.input}
type={type}
onChange={onChange}
value={value}

View file

@ -1,15 +1,22 @@
.wrapper {
height: $input_height;
display: flex;
flex-direction: column;
align-items: flex-start;
height: $input_height;
}
.label {
background: $input_bg_color;
font-size: 10px;
background: transparentize(black, 0.8);
font: $font_14_medium;
// color: transparentize(white, 0.5);
text-transform: uppercase;
font-weight: 600;
padding: 2px $gap;
display: flex;
align-items: center;
justify-content: flex-start;
border-radius: $radius 0 0 $radius;
@include input_shadow();
}
.container {
@ -20,7 +27,7 @@
flex: 1 0;
display: flex;
align-self: stretch;
align-items: center;
align-items: stretch;
justify-content: center;
@include input_shadow();
}