Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/osiris-style.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
width: .5rem;
height: .5rem;
background-color: transparent;
top: .2rem;
top: .3rem;
left: .1rem;
transform: translate(0);
position: absolute;
Expand All @@ -66,4 +66,4 @@
border-color: $color-border-light;
}
}
}
}
1 change: 1 addition & 0 deletions src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
@import 'radio';
@import 'checkbox';
@import 'form';
@import 'select';
16 changes: 8 additions & 8 deletions src/input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@

&.o-input__prefix {
.o-input__icon--prefix {
top: .3rem;
top: .4rem;
left: .4rem;
}
}

&.o-input__suffix {
.o-input__icon--suffix {
top: .3rem;
top: .4rem;
right: .4rem;
}
}
Expand All @@ -81,14 +81,14 @@

&.o-input__prefix {
.o-input__icon--prefix {
top: .5rem;
top: .6rem;
left: .4rem;
}
}

&.o-input__suffix {
.o-input__icon--suffix {
top: .5rem;
top: .6rem;
right: .4rem;
}
}
Expand All @@ -101,14 +101,14 @@

&.o-input__prefix {
.o-input__icon--prefix {
top: .6rem;
top: .8rem;
left: .65rem;
}
}

&.o-input__suffix {
.o-input__icon--suffix {
top: .6rem;
top: .8rem;
right: .65rem;
}
}
Expand All @@ -121,14 +121,14 @@

&.o-input__prefix {
.o-input__icon--prefix {
top: .8rem;
top: 1rem;
left: .8rem;
}
}

&.o-input__suffix {
.o-input__icon--suffix {
top: .8rem;
top: 1rem;
right: .8rem;
}
}
Expand Down
82 changes: 81 additions & 1 deletion src/reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
box-sizing: border-box;
}

html, body {
html, body, * {
font-family: 'Nunito', sans-serif;
font-weight: $font-weight-base;
font-size: $font-size-base;
Expand Down Expand Up @@ -141,3 +141,83 @@ hr {
.color-danger {
color: $color-danger;
}

.o-popper {
width: auto;
text-align: center;
padding: 2px;
display: inline-block;
border-radius: 3px;
position: absolute;
font-weight: normal;
z-index: 200000;

& .o-popper__arrow {
width: 0;
height: 0;
border-style: solid;
position: absolute;
margin: 5px;
}

&[x-placement^="top"] {
margin-bottom: 4px;

& .o-popper__arrow {
border-width: 5px 5px 0 5px;
border-color: #fff transparent transparent transparent;
bottom: -4px;
left: calc(90% - 4px);
margin-top: 0;
margin-bottom: 0;
}
}

&[x-placement^="bottom"] {
margin-top: 5px;

& .o-popper__arrow {
border-width: 0 5px 5px 5px;
border-color: transparent transparent #fff transparent;
top: -4px;
left: calc(90% - 4px);
margin-top: 0;
margin-bottom: 0;
}
}

&[x-placement^="right"] {
margin-left: 5px;

& .o-popper__arrow {
border-width: 5px 5px 5px 0;
border-color: transparent #fff transparent transparent;
left: -4px;
top: calc(90% - 4px);
margin-left: 0;
margin-right: 0;
}
}

&[x-placement^="left"] {
margin-right: 5px;

& .o-popper__arrow {
border-width: 5px 0 5px 5px;
border-color: transparent transparent transparent #fff;
right: -4px;
top: calc(90% - 4px);
margin-left: 0;
margin-right: 0;
}
}
}









Loading