Skip to content

Commit bd5a378

Browse files
committed
Merge branch 'master' into 0.29.0
2 parents 96f8c22 + be842da commit bd5a378

8 files changed

+113
-3
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file. See [standa
44

55
### [0.28.28](https://github.com/mattlewis92/angular-calendar/compare/v0.28.27...v0.28.28) (2021-09-01)
66

7+
* no functional changes, just needed to publish a readme update to npm
8+
79
### [0.28.27](https://github.com/mattlewis92/angular-calendar/compare/v0.28.26...v0.28.27) (2021-08-27)
810

911

projects/demos/app/carbon-ad/carbon-ad.component.html

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
#carbonads * {
2+
margin: initial;
3+
padding: initial;
4+
}
5+
#carbonads {
6+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
7+
Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', Helvetica, Arial,
8+
sans-serif;
9+
display: flex;
10+
max-width: 330px;
11+
background-color: hsl(0, 0%, 98%);
12+
box-shadow: 0 1px 4px 1px hsla(0, 0%, 0%, 0.1);
13+
z-index: 100;
14+
margin-bottom: 20px;
15+
}
16+
#carbonads a {
17+
color: inherit;
18+
text-decoration: none;
19+
}
20+
#carbonads a:hover {
21+
color: inherit;
22+
}
23+
#carbonads span {
24+
position: relative;
25+
display: block;
26+
overflow: hidden;
27+
}
28+
#carbonads .carbon-wrap {
29+
display: flex;
30+
}
31+
#carbonads .carbon-img {
32+
display: block;
33+
margin: 0;
34+
line-height: 1;
35+
}
36+
#carbonads .carbon-img img {
37+
display: block;
38+
}
39+
#carbonads .carbon-text {
40+
font-size: 13px;
41+
padding: 10px;
42+
margin-bottom: 16px;
43+
line-height: 1.5;
44+
text-align: left;
45+
}
46+
#carbonads .carbon-poweredby {
47+
display: block;
48+
padding: 6px 8px;
49+
background: #f1f1f2;
50+
text-align: center;
51+
text-transform: uppercase;
52+
letter-spacing: 0.5px;
53+
font-weight: 600;
54+
font-size: 8px;
55+
line-height: 1;
56+
border-top-left-radius: 3px;
57+
position: absolute;
58+
bottom: 0;
59+
right: 0;
60+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import {
2+
AfterViewInit,
3+
Component,
4+
ElementRef,
5+
ViewEncapsulation,
6+
} from '@angular/core';
7+
8+
@Component({
9+
selector: 'mwl-carbon-ad',
10+
templateUrl: './carbon-ad.component.html',
11+
styleUrls: ['./carbon-ad.component.scss'],
12+
encapsulation: ViewEncapsulation.None,
13+
})
14+
export class CarbonAdComponent implements AfterViewInit {
15+
constructor(private elementRef: ElementRef<HTMLElement>) {}
16+
17+
ngAfterViewInit(): void {
18+
const script = document.createElement('script');
19+
script.src =
20+
'//cdn.carbonads.com/carbon.js?serve=CESIVK3U&placement=mattlewis92githubio';
21+
script.id = '_carbonads_js';
22+
this.elementRef.nativeElement.append(script);
23+
}
24+
}

projects/demos/app/demo-app.css

+16
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,34 @@ h3 {
66
padding-top: 70px;
77
}
88

9+
.demo-container {
10+
padding-bottom: 15px;
11+
}
12+
913
@media (min-width: 768px) {
1014
.container-fluid {
1115
height: 100vh;
1216
}
1317
}
1418

19+
@media (max-width: 768px) {
20+
.demo-container {
21+
flex-basis: initial;
22+
}
23+
24+
.sidebar-nav {
25+
width: 100%;
26+
margin-left: 10px;
27+
}
28+
}
29+
1530
.spacer-top {
1631
margin-top: 15px;
1732
}
1833

1934
.sidebar-nav {
2035
padding-left: 5px;
36+
padding-right: 20px;
2137
}
2238

2339
.sidebar-nav h4 {

projects/demos/app/demo-app.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
<div class="container-fluid">
108108
<div class="row fill-height">
109109
<div
110-
class="col-md-9 col-xl-10 fill-height scroll-y"
110+
class="col fill-height scroll-y demo-container"
111111
mwlDraggableScrollContainer
112112
>
113113
<div class="card" *ngIf="firstDemoLoaded; else loading">
@@ -166,7 +166,8 @@
166166
</div>
167167
</div>
168168
</div>
169-
<div class="col-md-3 col-xl-2 fill-height sidebar-nav scroll-y">
169+
<div class="fill-height sidebar-nav scroll-y">
170+
<mwl-carbon-ad></mwl-carbon-ad>
170171
<input
171172
type="search"
172173
class="form-control"

projects/demos/app/demo-app.module.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ import { DemoModule as DefaultDemoModule } from './demo-modules/kitchen-sink/mod
1515
import { environment } from '../environments/environment';
1616
import { FormsModule } from '@angular/forms';
1717
import { ClipboardModule } from 'ngx-clipboard';
18+
import { CarbonAdComponent } from './carbon-ad/carbon-ad.component';
1819

1920
@NgModule({
20-
declarations: [DemoAppComponent],
21+
declarations: [DemoAppComponent, CarbonAdComponent],
2122
imports: [
2223
BrowserModule,
2324
BrowserAnimationsModule,

projects/demos/styles.scss

+6
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@
33
@import '~highlight.js/styles/github.css';
44
@import '~flatpickr/dist/flatpickr.css';
55
@import '../angular-calendar/src/angular-calendar.scss';
6+
7+
@media (min-width: 768px) {
8+
body {
9+
overflow-y: hidden;
10+
}
11+
}

0 commit comments

Comments
 (0)