Skip to content

Commit b3b0cd5

Browse files
committed
Fix for ads not displaying. CSS tweaks.
1 parent 5aa5017 commit b3b0cd5

File tree

4 files changed

+17
-15
lines changed

4 files changed

+17
-15
lines changed

dev/lib/native.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ window._native_go = function (json) {
108108
selectedTarget.setAttribute('data-state', 'visible');
109109
} else {
110110
selectedTarget.innerHTML = null;
111-
selectedTarget.style.display = 'none';
112111
}
113112
});
114113
};

dev/sass/views/ad.scss

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
.native-js {
2-
transition: all .5s ease-in-out;
3-
//visibility: hidden;
4-
//opacity: 0;
5-
//display: none;
2+
transition: all 0.25s ease-in-out;
3+
opacity: 0;
4+
position: absolute;
5+
top: 0;
66
}
7-
8-
.native-show {
9-
visibility: visible;
7+
8+
.native-js[data-state=visible] {
9+
position: static;
1010
opacity: 1;
1111
}
1212

1313
.native-img {
14-
margin-right: $pad;
14+
margin-right: $pad*0.75;
1515
max-height: 40px;
1616
max-width: 27%;
1717
border-radius: 3px;
1818
}
1919

2020
.native-flex {
2121
display: flex;
22-
padding: $pad;
22+
padding: $pad*0.5 $pad*0.75;
2323
text-decoration: none;
2424

2525
flex-flow: row nowrap;
@@ -29,7 +29,6 @@
2929

3030
.native-main {
3131
display: flex;
32-
flex-grow: 1;
3332

3433
flex-flow: row nowrap;
3534
align-items: center;
@@ -39,7 +38,7 @@
3938
display: flex;
4039
font-size: 12px;
4140

42-
flex-flow: column nowrap;
41+
flex-flow: column;
4342
}
4443

4544
.native-company {
@@ -53,7 +52,11 @@
5352
.native-desc {
5453
letter-spacing: 1px;
5554
font-weight: 300;
56-
line-height: 1.4;
55+
line-height: 1.3em;
56+
text-overflow: ellipsis;
57+
max-height: 3.7em;
58+
overflow: hidden;
59+
position: relative;
5760
}
5861

5962
.native-cta {

dev/src/RegExr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default class RegExr extends EventDispatcher {
6666
window.onbeforeunload = (e) => this.unsaved ? "You have unsaved changes." : null;
6767
this.resetUnsaved();
6868

69-
setTimeout(() => this._initAds(), 500);
69+
setTimeout(() => this._initAds(), 100);
7070
}
7171

7272
_initAds() {

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
</div>
6363
</ul>
6464
<ul class="file">
65-
<li class="save"><span class="action">Save</span> <span class="savekey">(--)</span></li>
65+
<li class="save disabled"><span class="action">Save</span> <span class="savekey">(--)</span></li>
6666
<li class="new">New</li>
6767
</ul>
6868
<ul class="etc">

0 commit comments

Comments
 (0)