Attempt points styling
This commit is contained in:
1 parent
eb64159275
commit
1e0d900376
3 files changed
+67
-45
No files matched your search
+35
-14
@@ -5,6 +5,7 @@
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.top-bar {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
@@ -14,7 +15,7 @@
|
||||
height: 120px;
|
||||
z-index: 2;
|
||||
background-color: transparent;
|
||||
|
||||
|
||||
--corner-radius: 20px;
|
||||
--border-width: 2px;
|
||||
}
|
||||
@@ -25,15 +26,15 @@
|
||||
inset: 0;
|
||||
background-color: var(--dark-brown, #3d2b1f);
|
||||
z-index: -2;
|
||||
|
||||
|
||||
--r: var(--corner-radius);
|
||||
|
||||
|
||||
-webkit-mask:
|
||||
linear-gradient(black, black) top center / 100% calc(100% - var(--r) + 1px) no-repeat,
|
||||
linear-gradient(black, black) top center / calc(100% - 2 * var(--r) + 1px) 100% no-repeat,
|
||||
radial-gradient(circle at 0 100%, transparent var(--r), black calc(var(--r) + 0.5px)) bottom left / var(--r) var(--r) no-repeat,
|
||||
radial-gradient(circle at 100% 100%, transparent var(--r), black calc(var(--r) + 0.5px)) bottom right / var(--r) var(--r) no-repeat;
|
||||
|
||||
|
||||
mask:
|
||||
linear-gradient(black, black) top center / 100% calc(100% - var(--r) + 1px) no-repeat,
|
||||
linear-gradient(black, black) top center / calc(100% - 2 * var(--r) + 1px) 100% no-repeat,
|
||||
@@ -54,13 +55,13 @@
|
||||
|
||||
--b: var(--border-width);
|
||||
--r-inner: calc(var(--corner-radius) + var(--b));
|
||||
|
||||
|
||||
-webkit-mask:
|
||||
linear-gradient(black, black) top center / 100% calc(100% - var(--r-inner) + 1px) no-repeat,
|
||||
linear-gradient(black, black) top center / calc(100% - 2 * var(--r-inner) + 1px) calc(100% - var(--b)) no-repeat,
|
||||
radial-gradient(circle at 0 100%, transparent var(--r-inner), black calc(var(--r-inner) + 0.5px)) bottom left / var(--r-inner) var(--r-inner) no-repeat,
|
||||
radial-gradient(circle at 100% 100%, transparent var(--r-inner), black calc(var(--r-inner) + 0.5px)) bottom right / var(--r-inner) var(--r-inner) no-repeat;
|
||||
|
||||
|
||||
mask:
|
||||
linear-gradient(black, black) top center / 100% calc(100% - var(--r-inner) + 1px) no-repeat,
|
||||
linear-gradient(black, black) top center / calc(100% - 2 * var(--r-inner) + 1px) calc(100% - var(--b)) no-repeat,
|
||||
@@ -70,7 +71,7 @@
|
||||
|
||||
.top-bar-content {
|
||||
padding: 8px;
|
||||
position: relative;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
@@ -79,7 +80,7 @@
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.map {
|
||||
@@ -94,10 +95,9 @@
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
/*height: 100%; TODO: fullsize when doing this*/
|
||||
padding: 1rem;
|
||||
background-color: #000000AA;
|
||||
z-index: 10;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.permissions-overlay {
|
||||
@@ -108,20 +108,41 @@
|
||||
height: 100%;
|
||||
padding: 1rem;
|
||||
background-color: #000000AA;
|
||||
z-index: 10;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.points-outer-box {
|
||||
position: relative;
|
||||
width: 300px;
|
||||
height: 200px;
|
||||
padding: 3px;
|
||||
box-sizing: content-box;
|
||||
background-color: #3498db;
|
||||
color: #fff;
|
||||
|
||||
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 200'%3E%3Cpath d='M 20 0 Q 0 0 0 20 L 0 180 Q 0 200 20 200 L 300 200 Q 320 200 320 180 L 320 200 Z'/%3E%3C/svg%3E");
|
||||
border-radius: 20px;
|
||||
overflow: hidden;
|
||||
|
||||
/* inverted (concave) corners: a rounded border keeps the box solid */
|
||||
border: 3px solid #fff;
|
||||
outline-offset: -15px;
|
||||
outline: none;
|
||||
|
||||
/* background mask with an inward-dipping concave corner path (concave-up) */
|
||||
-webkit-mask:
|
||||
linear-gradient(#000) 0 0 / 100% 50% round,
|
||||
linear-gradient(#000) 100% 100% / 100% 50% round,
|
||||
linear-gradient(#fff) 0 100% / 10px 5px round;
|
||||
mask:
|
||||
linear-gradient(#000) 0 0 / 100% 50% round,
|
||||
linear-gradient(#000) 100% 100% / 100% 50% round,
|
||||
linear-gradient(#fff) 0 100% / 10px 5px round;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.points-inner-box {
|
||||
padding: 30px;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user