Skip to content
This repository has been archived by the owner on Mar 1, 2019. It is now read-only.

Commit

Permalink
Termbox: make widths responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
wiese committed Jan 11, 2019
1 parent f6c42f1 commit bab975a
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
46 changes: 46 additions & 0 deletions src/components/TermBox.vue
Expand Up @@ -124,6 +124,13 @@ export default class TermBox extends ( mixins( Messages ) as VueConstructor<Term
max-width: 420px;
}
&__label,
&__description,
&__aliases {
min-width: 260px;
max-width: 420px;
}
&__label {
color: $color-black;
line-height: 1.3em;
Expand Down Expand Up @@ -172,4 +179,43 @@ export default class TermBox extends ( mixins( Messages ) as VueConstructor<Term
}
}
}
@include media-breakpoint-up( sm ) {
}
@include media-breakpoint-up( md ) {
// :not( .wikibase-termbox--primaryLanguage ) {
.wikibase-termbox {
display: table;
&__language {
display: block;
}
&__label,
&__description,
&__alias {
display: table-cell;
// TODO same width for the three of them
}
}
}
@include media-breakpoint-up( lg ) {
// :not( .wikibase-termbox--primaryLanguage ) {
.wikibase-termbox {
&__language {
width: 128px;
display: table-cell;
}
&__label,
&__description,
&__alias {
display: table-cell;
// TODO same width for the three of them
}
}
}
</style>
1 change: 1 addition & 0 deletions src/styles/_main.scss
@@ -1,3 +1,4 @@
@import "_variables";
@import "_font-helper";
@import "~bootstrap/scss/mixins/_screen-reader";
@import "~bootstrap/scss/mixins/_breakpoints";
6 changes: 6 additions & 0 deletions src/styles/_variables.scss
@@ -1,3 +1,9 @@
$sm: 501px;
$md: 892px;
$lg: 1036px;

$grid-breakpoints: ( sm: $sm, md: $md, lg: $lg );

$base-font-size: 16px;

$color-light-azureish-gray: #72777d;
Expand Down

0 comments on commit bab975a

Please sign in to comment.