forked from GNUsocial/gnu-social
[LEFT][RIGHT][CSS] Panels now occupy full page in smaller screen sizes.
This commit is contained in:
parent
903e6b33ff
commit
5bf4a68454
@ -10,8 +10,8 @@
|
|||||||
* small size - used in common text, borders
|
* small size - used in common text, borders
|
||||||
*/
|
*/
|
||||||
--unit-size: 0.5rem;
|
--unit-size: 0.5rem;
|
||||||
--main-size: 1.5rem;
|
--main-size: 1.3rem;
|
||||||
--medium-size: 1.125rem;
|
--medium-size: 1.15rem;
|
||||||
--small-size: 1rem;
|
--small-size: 1rem;
|
||||||
|
|
||||||
/* colours and shadows */
|
/* colours and shadows */
|
||||||
@ -37,21 +37,22 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.bg {
|
.bg {
|
||||||
background-image: url(bg-over.png),
|
background-color: var(--bg1);
|
||||||
url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAAElBMVEUAAACUkpSEhoSMioyMjoyEgoRr6djFAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAU1JREFUKJEVUcl1xTAIpAVLSgECXIAYUoCAX0Bi919LlCPLm5ValiOUUe2+ZRVFuYpKXFsUX9aIp0V6GtC8VRhNL0X2fikvswhKrNDhes7pbpPkufFAtI0B76LEjfc2bgdHDk6RX4A/sjt6LCylfoYpNYYJx/9COhIugsjluzN9VGZ/Hnl51jIH2ba+Ywsy2RJCFdoDe8Obw61TXGAv+ewExMRJs7gd7YcimPuk42uMqY2VJ1fK+bDL32rb7kwok/la/u7Mrz7Xf0DTssSP2Btp1ZS0zw35tM/SsJKgWNLcRh+/th1QqntwtM3Tx0LNosoBYbM3qjJFiMeLsMH2i5BcQdU3n9sJHOE1Hoqn1GA/bm4s0YkVB/y4r0PbltF32FpljXmdlOOwbDvFWkoDYLppSG4pnM6UxX3Src1lhXeU36FOu3o+R2vNaHME/wESUl9/3zMniwAAAABJRU5ErkJggg==);
|
background-image: url(bg.png);
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
|
background-repeat: no-repeat;
|
||||||
border: solid 2px var(--bg2);
|
border: solid 2px var(--bg2);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TYPOGRAPHY */
|
/* TYPOGRAPHY */
|
||||||
html {
|
html {
|
||||||
background-image: url(bg-bellow.png),
|
|
||||||
url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAAElBMVEUAAACUkpSEhoSMioyMjoyEgoRr6djFAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAU1JREFUKJEVUcl1xTAIpAVLSgECXIAYUoCAX0Bi919LlCPLm5ValiOUUe2+ZRVFuYpKXFsUX9aIp0V6GtC8VRhNL0X2fikvswhKrNDhes7pbpPkufFAtI0B76LEjfc2bgdHDk6RX4A/sjt6LCylfoYpNYYJx/9COhIugsjluzN9VGZ/Hnl51jIH2ba+Ywsy2RJCFdoDe8Obw61TXGAv+ewExMRJs7gd7YcimPuk42uMqY2VJ1fK+bDL32rb7kwok/la/u7Mrz7Xf0DTssSP2Btp1ZS0zw35tM/SsJKgWNLcRh+/th1QqntwtM3Tx0LNosoBYbM3qjJFiMeLsMH2i5BcQdU3n9sJHOE1Hoqn1GA/bm4s0YkVB/y4r0PbltF32FpljXmdlOOwbDvFWkoDYLppSG4pnM6UxX3Src1lhXeU36FOu3o+R2vNaHME/wESUl9/3zMniwAAAABJRU5ErkJggg==);
|
|
||||||
background-size: cover;
|
|
||||||
|
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
}
|
}
|
||||||
|
body {
|
||||||
|
background-image: url(bg.png);
|
||||||
|
background-size: cover;
|
||||||
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-family: var(--display-font);
|
font-family: var(--display-font);
|
||||||
@ -216,19 +217,20 @@ html {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
margin-top: calc(3 * var(--small-size) + var(--main-size));
|
/*margin-top: calc(3 * var(--small-size) + var(--main-size));*/
|
||||||
|
margin-top: 4.3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* THE FOCUSED (middle) DIV */
|
/* THE FOCUSED (middle) DIV */
|
||||||
.content {
|
.content {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
margin-left: calc(100% / 5);
|
margin-left: 20%;
|
||||||
margin-right: calc(100% / 5);
|
margin-right: 20%;
|
||||||
padding: var(--small-size);
|
padding: var(--small-size);
|
||||||
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: calc(3 * (100% / 5));
|
max-width: 60%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NOTES */
|
/* NOTES */
|
||||||
@ -308,6 +310,21 @@ figcaption a:link {
|
|||||||
|
|
||||||
.panel aside {
|
.panel aside {
|
||||||
animation: var(--fade-in);
|
animation: var(--fade-in);
|
||||||
|
padding: var(--unit-size);
|
||||||
|
|
||||||
|
|
||||||
|
box-sizing: border-box;
|
||||||
|
width: 20%;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
|
position: absolute;
|
||||||
|
top: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel aside .footer {
|
||||||
|
margin-top: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-left,
|
.icon-left,
|
||||||
@ -317,22 +334,7 @@ figcaption a:link {
|
|||||||
|
|
||||||
|
|
||||||
/* MEDIA RESIZE */
|
/* MEDIA RESIZE */
|
||||||
@media (min-width: 1200px) {
|
|
||||||
.panel aside {
|
|
||||||
padding: var(--unit-size);
|
|
||||||
box-sizing: border-box;
|
|
||||||
width: calc(100% / 5);
|
|
||||||
height: border-box;
|
|
||||||
|
|
||||||
display: flex !important;
|
|
||||||
flex-direction: column !important;
|
|
||||||
position: absolute !important;
|
|
||||||
top: 100% !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 1200px) {
|
@media (max-width: 1200px) {
|
||||||
|
|
||||||
.icon-left,
|
.icon-left,
|
||||||
.icon-right {
|
.icon-right {
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -355,25 +357,23 @@ figcaption a:link {
|
|||||||
|
|
||||||
.panel[open] {
|
.panel[open] {
|
||||||
all: unset;
|
all: unset;
|
||||||
display: block;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel aside {
|
||||||
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel[open] aside {
|
.panel[open] aside {
|
||||||
padding: var(--unit-size);
|
padding: var(--unit-size);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: border-box;
|
height: 100vh;
|
||||||
|
background: url("bg.png") !important;
|
||||||
|
background-size: cover !important;
|
||||||
|
|
||||||
display: flex !important;
|
display: block !important;
|
||||||
flex-direction: column !important;
|
|
||||||
position: absolute !important;
|
|
||||||
top: 100% !important;
|
|
||||||
left: 0 !important;
|
|
||||||
|
|
||||||
background-image: radial-gradient(ellipse at 50% 5%, var(--bg1), var(--bg2)),
|
|
||||||
url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAAElBMVEUAAACUkpSEhoSMioyMjoyEgoRr6djFAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAU1JREFUKJEVUcl1xTAIpAVLSgECXIAYUoCAX0Bi919LlCPLm5ValiOUUe2+ZRVFuYpKXFsUX9aIp0V6GtC8VRhNL0X2fikvswhKrNDhes7pbpPkufFAtI0B76LEjfc2bgdHDk6RX4A/sjt6LCylfoYpNYYJx/9COhIugsjluzN9VGZ/Hnl51jIH2ba+Ywsy2RJCFdoDe8Obw61TXGAv+ewExMRJs7gd7YcimPuk42uMqY2VJ1fK+bDL32rb7kwok/la/u7Mrz7Xf0DTssSP2Btp1ZS0zw35tM/SsJKgWNLcRh+/th1QqntwtM3Tx0LNosoBYbM3qjJFiMeLsMH2i5BcQdU3n9sJHOE1Hoqn1GA/bm4s0YkVB/y4r0PbltF32FpljXmdlOOwbDvFWkoDYLppSG4pnM6UxX3Src1lhXeU36FOu3o+R2vNaHME/wESUl9/3zMniwAAAABJRU5ErkJggg==);
|
|
||||||
background-blend-mode: multiply;
|
|
||||||
background-attachment: fixed;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 298 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
@ -1,16 +1,16 @@
|
|||||||
|
#left-panel {
|
||||||
|
left: 0;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
.icon-left {
|
.icon-left {
|
||||||
width: var(--main-size);
|
width: var(--main-size);
|
||||||
height: auto;
|
height: auto;
|
||||||
|
|
||||||
fill: var(--white);
|
fill: var(--white);
|
||||||
stroke-width: 0;
|
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
#left-panel {
|
|
||||||
left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* PROFILE */
|
/* PROFILE */
|
||||||
.profile-nav {
|
.profile-nav {
|
||||||
font-family: var(--display-font);
|
font-family: var(--display-font);
|
||||||
|
Loading…
Reference in New Issue
Block a user