Skip to content

Commit

Permalink
CB-13969 updating README.MD to better explain lefttoright parameter o…
Browse files Browse the repository at this point in the history
…ption, reverting unneccesary indent changes on inappbrowser.css
  • Loading branch information
steinaragustli committed Feb 28, 2019
1 parent 74ccef1 commit 4adf4c7
Show file tree
Hide file tree
Showing 2 changed files with 167 additions and 54 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ instance, or the system browser.
All platforms support:

- __location__: Set to `yes` or `no` to turn the `InAppBrowser`'s location bar on or off.
- __lefttoright__: Set to `yes` to swap position of the navigation buttons and the close button.
- __lefttoright__: Set to `yes` to swap positions of the navigation buttons and the close button. Specifically from left to right on iOS, and from right to left for Android(since the default values for the platforms are opposites).

Android supports these additional options:

Expand Down
219 changes: 166 additions & 53 deletions www/inappbrowser.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
Expand All @@ -18,97 +18,210 @@
*/

.inAppBrowserWrap {
margin: 0;
padding: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: 0 0;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 9999999;
box-sizing: border-box;
border: 40px solid #bfbfbf;
border: 40px solid rgba(0, 0, 0, 0.25);
margin: 0;
padding: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: 0 0;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 9999999;
box-sizing: border-box;
border: 40px solid #bfbfbf;
border: 40px solid rgba(0, 0, 0, 0.25);
}

.inAppBrowserWrapFullscreen {
border: 0;
border: 0;
}

.inappbrowser-app-bar {
height: 70px;
background-color: #404040;
z-index: 9999999;
height: 70px;
background-color: #404040;
z-index: 9999999;
}

.inappbrowser-app-bar-inner {
padding-top: 10px;
height: 60px;
width: 155px;
margin: 0 auto;
background-color: #404040;
z-index: 9999999;
padding-top: 10px;
height: 60px;
width: 155px;
margin: 0 auto;
background-color: #404040;
z-index: 9999999;
}

.app-bar-action {
width: auto;
height: 40px;
margin-left: 20px;
font-family: 'Segoe UI Symbol';
float: left;
color: white;
font-size: 12px;
text-transform: lowercase;
text-align: center;
cursor: default;
width: auto;
height: 40px;
margin-left: 20px;
font-family: "Segoe UI Symbol";
float: left;
color: white;
font-size: 12px;
text-transform: lowercase;
text-align: center;
cursor: default;
}

.app-bar-action[disabled] {
color: gray;
/*disable click*/
pointer-events: none;
color: gray;
/*disable click*/
pointer-events: none;
}

.app-bar-action::before {
font-size: 28px;
display: block;
height: 36px;
font-size: 28px;
display: block;
height: 36px;
}

/* Back */
.action-back {
margin-left: 0px;
.action-back {
margin-left: 0px;
}

.action-back::before {
content: '\E0BA';
content: "\E0BA";
}

.action-back:not([disabled]):hover::before {
content: '\E0B3';
content: "\E0B3";
}

/* Forward */
.action-forward::before {
content: '\E0AC';
content: "\E0AC";
}

.action-forward:not([disabled]):hover::before {
content: '\E0AF';
content: "\E0AF";
}

/* Close */
.action-close::before {
content: '\E0C7';
/* close icon is larger so we re-size it to fit other icons */
font-size: 20px;
line-height: 40px;
content: "\E0C7";
/* close icon is larger so we re-size it to fit other icons */
font-size: 20px;
line-height: 40px;
}

.action-close:not([disabled]):hover::before {
content: '\E0CA';
content: "\E0CA";
}/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

.inAppBrowserWrap {
margin: 0;
padding: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: 0 0;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 9999999;
box-sizing: border-box;
border: 40px solid #bfbfbf;
border: 40px solid rgba(0, 0, 0, 0.25);
}

.inAppBrowserWrapFullscreen {
border: 0;
}

.inappbrowser-app-bar {
height: 70px;
background-color: #404040;
z-index: 9999999;
}

.inappbrowser-app-bar-inner {
padding-top: 10px;
height: 60px;
width: 155px;
margin: 0 auto;
background-color: #404040;
z-index: 9999999;
}

.app-bar-action {
width: auto;
height: 40px;
margin-left: 20px;
font-family: "Segoe UI Symbol";
float: left;
color: white;
font-size: 12px;
text-transform: lowercase;
text-align: center;
cursor: default;
}

.app-bar-action[disabled] {
color: gray;
/*disable click*/
pointer-events: none;
}

.app-bar-action::before {
font-size: 28px;
display: block;
height: 36px;
}

/* Back */
.action-back {
margin-left: 0px;
}

.action-back::before {
content: "\E0BA";
}

.action-back:not([disabled]):hover::before {
content: "\E0B3";
}

/* Forward */
.action-forward::before {
content: "\E0AC";
}

.action-forward:not([disabled]):hover::before {
content: "\E0AF";
}

/* Close */
.action-close::before {
content: "\E0C7";
/* close icon is larger so we re-size it to fit other icons */
font-size: 20px;
line-height: 40px;
}

.action-close:not([disabled]):hover::before {
content: "\E0CA";
}

0 comments on commit 4adf4c7

Please sign in to comment.