Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prototyping language selector #6063

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from
Draft
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
47 changes: 47 additions & 0 deletions view/theme/frio/css/language-selector.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
select.language {
-moz-appearance: none;
-webkit-appearance: none;
-moz-focusring
appearance: none;
border: none;
outline: none;
cursor: pointer;
background-color: #fff;
color: transparent;
text-shadow: 0 0 0 #000;
}
select.language option {
background-color: #fff;
}
select.language::-ms-expand {
display: none;
}
select.language:focus::-ms-value {
background-color: transparent;
}
label.language {
position:relative
display: block;
padding: 10px 11px;
}
label.language:after {
content:"\f024";
font-family: "FontAwesome";
font-size: 14px;
color:#555;
right:20px;
padding:0 0 2px;
position:absolute;
pointer-events:none;
}
label.language:before {
content:'';
right:4px;
top:0px;
width:23px;
height:18px;
background:#fff;
position:absolute;
pointer-events:none;
display:block;
}
4 changes: 2 additions & 2 deletions view/theme/frio/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ and open the template in the editor.
@import url("frameworks/justifiedGallery/justifiedGallery.min.css");
@import url("frameworks/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css");
@import url("font/open_sans/open-sans.css");
@import url("css/hovercard.css");*/

@import url("css/hovercard.css");
@import url("css/language-selector.css");*/

body {
padding-top: 110px;
Expand Down
8 changes: 8 additions & 0 deletions view/theme/frio/templates/jot.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,14 @@
<!-- TODO: waiting for a better placement
<li><button type="button" class="btn-link" id="profile-nolocation" onclick="jotClearLocation();" title="{{$noloc}}">{{$shortnoloc}}</button></li>
-->
<li role="presentation"><label class="language">
<select class="language">
<option selected="selected"></option>
<option>DE</option>
<option>EN</option>
<option>FR</option>
</select>
</label></li>

<li role="presentation" class="pull-right"><button class="btn btn-primary" type="submit" id="profile-jot-submit" name="submit" ><i class="fa fa-slideshare fa-fw" aria-hidden="true"></i> {{$share}}</button></li>
<li role="presentation" id="character-counter" class="grey jothidden text-info pull-right"></li>
Expand Down