Skip to content

Commit 724eb16

Browse files
committed
chore: test ads
1 parent 1d61677 commit 724eb16

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

_sass/layout/_panel.scss

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
top: 2rem;
77
transition: top 0.2s ease-in-out;
88
margin-top: 3rem;
9+
position: relative; // adăugat pentru context absolut ads-panel
910

1011
&:only-child {
1112
position: -webkit-sticky;
@@ -14,23 +15,28 @@
1415

1516
> section {
1617
@extend %panel-border;
17-
1818
padding-left: 1rem;
1919

2020
&:not(:first-child) {
2121
margin-top: 4rem;
2222
}
2323

2424
&.ads-panel {
25+
position: absolute;
26+
top: 0;
27+
right: 0;
2528
padding: 1rem;
2629
text-align: center;
2730
background-color: var(--panel-bg, #ffffff);
2831
border-radius: 0.25rem;
32+
z-index: 1;
33+
box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
2934

3035
.adsbygoogle {
36+
width: 100%; // lăsăm Google să își regleze dimensiunea
3137
max-width: 100%;
32-
width: 100%;
3338
overflow: hidden;
39+
display: block;
3440
}
3541
}
3642
}
@@ -41,11 +47,9 @@
4147
}
4248

4349
#panel-wrapper {
44-
/* the headings */
4550
.panel-heading {
4651
font-family: inherit;
4752
line-height: inherit;
48-
4953
@include mx.label(inherit);
5054
}
5155

0 commit comments

Comments
 (0)