Skip to content

Commit 5f68a2b

Browse files
committed
#36 little style to select
1 parent 4a24c09 commit 5f68a2b

File tree

3 files changed

+44
-2
lines changed

3 files changed

+44
-2
lines changed

src/GraphicCore/StatefullWidget/SettingsModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
</div>
5555
<div class="form__field">
5656
{{ $t('settings.chooseLanguage') }}
57-
<select v-model="$i18n.locale">
57+
<select class="select" v-model="$i18n.locale">
5858
<option
5959
v-for="(lang, i) in langs"
6060
:key="`Lang${i}`"

src/GraphicCore/framework/Stateless/_index.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
@forward 'buttons';
33
@forward 'checkbox';
44
@forward 'alert';
5-
@forward 'textarea';
5+
@forward 'textarea';
6+
@forward 'select';
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
@use '../Library/colours';
2+
@use '../Library/fonts';
3+
.select{
4+
transition: 0.1s;
5+
@include colours.corner-radius;
6+
@include fonts.font('primary');
7+
width: 5rem;
8+
text-rendering: auto;
9+
color: inherit;
10+
background-color: inherit;
11+
letter-spacing: normal;
12+
word-spacing: normal;
13+
text-transform: none;
14+
text-indent: 3px;
15+
text-shadow: none;
16+
padding: 7px;
17+
display: inline-block;
18+
text-align: start;
19+
box-sizing: border-box;
20+
align-items: center;
21+
white-space: pre;
22+
cursor: pointer;
23+
margin-left: 1em;
24+
border-width: 1px;
25+
border-style: solid;
26+
border-color: rgb(169, 169, 169);
27+
&:hover, &:focus{
28+
color: inherit;
29+
background-color: inherit;
30+
@include colours.corner-radius;
31+
outline: none;
32+
border-color: rgb(169, 169, 169);
33+
}
34+
& > option {
35+
color: colours.theme-color('primary','base');
36+
background-color: colours.theme-color('background','base');
37+
&:focus{
38+
outline: none;
39+
}
40+
}
41+
}

0 commit comments

Comments
 (0)