start implementing portlets

This commit is contained in:
Dennis Eichhorn 2020-02-29 19:50:05 +01:00
parent 24049e9984
commit c5536fdf17
8 changed files with 145 additions and 76 deletions

View File

@ -1,10 +1,14 @@
.portlet-body > article {
padding: 0;
}
article { article {
background: #fff; background: #fff;
padding: 10px; padding: 10px;
margin: 0; margin: 0;
font-size: 0.9rem; font-size: .9rem;
color: #48465b;
line-height: 2rem;
del, ins { del, ins {
padding: 3px; padding: 3px;
@ -20,12 +24,12 @@ article {
} }
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
font-weight: bold; font-weight: 500;
//padding-bottom: 1rem; //padding-bottom: 1rem;
} }
h1 { h1 {
font-size: 1.5rem; font-size: 1.4rem;
} }
h2 { h2 {
@ -42,15 +46,23 @@ article {
pre { pre {
margin: 1rem 0 1rem 0; margin: 1rem 0 1rem 0;
border: 1px solid #ddd;
border-left: 3px solid var(--button-colored-background);
background: #f4f4f4;
line-height: 1.5rem;
font-size: .8rem;
code { code {
background: none; background: none;
color: #000;
} }
} }
code { code {
padding: 3px; padding: 3px;
background: #f1f1f1; color: var(--link-hover);
font-style: italic;
font-family: monospace;
} }
a { a {
@ -68,6 +80,7 @@ article {
ol, ul { ol, ul {
margin: 0.5rem 0 0.5rem 3rem; margin: 0.5rem 0 0.5rem 3rem;
line-height: 1rem;
} }
ul { ul {

View File

@ -42,8 +42,6 @@
} }
:last-child { :last-child {
padding-right: 20px;
&:before { &:before {
border: none; border: none;
} }

View File

@ -29,7 +29,6 @@ input[type="email"],
input[type="date"], input[type="date"],
input[type="number"], input[type="number"],
input[type="datetime-local"] { input[type="datetime-local"] {
font-family: Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New, monospace;
box-sizing: border-box; box-sizing: border-box;
color: var(--input-color); color: var(--input-color);
background: var(--input-background); background: var(--input-background);
@ -165,7 +164,8 @@ textarea, .textarea {
overflow: auto; overflow: auto;
resize: both; resize: both;
min-height: 100px; min-height: 100px;
box-sizing: border-box; box-sizing: border-box;
font-family: Consolas, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace;
} }
span.checkbox, span.radio { span.checkbox, span.radio {

View File

@ -15,20 +15,17 @@ body > nav {
box-sizing: border-box; box-sizing: border-box;
span { span {
width: 20px; flex-grow: 1;
display: inline-block;
} }
input { input {
display: none; display: none;
&:checked + ul { &:checked + ul {
.max { .expand {
transition: all .3s ease;
display: inherit; display: inherit;
} transform: rotateZ(90deg);
.min {
display: none;
} }
> li:nth-child(n+2) { > li:nth-child(n+2) {
@ -38,17 +35,11 @@ body > nav {
} }
input + ul { input + ul {
.min, .max { .expand {
font-size: .6rem;
transition: all .3s ease;
margin-left: 1rem; margin-left: 1rem;
float: right; transform: rotateZ(0deg);
}
.max {
display: none;
}
.min {
display: inherit;
} }
> li:nth-child(n+2) { > li:nth-child(n+2) {
@ -57,7 +48,8 @@ body > nav {
} }
label { label {
display: block; display: flex;
align-items: center;
padding: .5rem 1rem .5rem 1rem; padding: .5rem 1rem .5rem 1rem;
cursor: pointer; cursor: pointer;
} }
@ -85,12 +77,9 @@ body > nav {
} }
} }
.max, .min {
float: right;
}
i { i {
margin-right: 5px; margin-right: 5px;
flex-grow: 0;
} }
} }
@ -107,10 +96,11 @@ body > nav {
user-select: none; user-select: none;
margin-top: 1rem; margin-top: 1rem;
display: block; display: block;
background: #fff;
border: 1px solid var(--box-border);
> li { > li {
box-shadow: 0 0 10px 3px rgba(90, 71, 114, 0.1);
margin-right: .5rem;
> a { > a {
display: inline-block; display: inline-block;
padding: 10px 10px; padding: 10px 10px;

29
portlet.scss Normal file
View File

@ -0,0 +1,29 @@
.portlet {
box-shadow: 0 0 10px 3px rgba(90, 71, 114, 0.1);
border-radius: 4px;
box-sizing: border-box;
margin-top: 1rem;
overflow-x: auto;
.portlet-head {
background: #fff;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
border-bottom: 1px solid #ebedf2;
padding: 1rem;
font-weight: 500;
}
.portlet-foot {
background: #fff;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
border-top: 1px solid #ebedf2;
padding: 1rem;
}
}
.portlet-body {
background: #fff;
padding: 1rem;
}

View File

@ -16,8 +16,9 @@
} }
section.box { section.box {
border: 1px solid var(--box-border);
background: #fff; background: #fff;
box-shadow: 0 0 10px 3px rgba(90, 71, 114, 0.1);
border-radius: 4px;
} }
section { section {

View File

@ -182,10 +182,6 @@ iframe {
.floatRight { .floatRight {
float: right; } float: right; }
.overflowfix {
overflow: auto;
}
.pAlignTable { .pAlignTable {
display: table; display: table;
width: 100%; } width: 100%; }
@ -197,6 +193,9 @@ iframe {
.h-overflow { .h-overflow {
overflow-x: auto; } overflow-x: auto; }
.overflowfix {
overflow: auto; }
.hidden { .hidden {
display: none; } display: none; }
@ -3140,11 +3139,16 @@ iframe {
-ms-flex-order: 1; -ms-flex-order: 1;
-webkit-box-ordinal-group: 2; -webkit-box-ordinal-group: 2;
order: 1; } } order: 1; } }
.portlet-body > article {
padding: 0; }
article { article {
background: #fff; background: #fff;
padding: 10px; padding: 10px;
margin: 0; margin: 0;
font-size: 0.9rem; } font-size: .9rem;
color: #48465b;
line-height: 2rem; }
article del, article ins { article del, article ins {
padding: 3px; padding: 3px;
text-decoration: none; } text-decoration: none; }
@ -3153,9 +3157,9 @@ article {
article ins { article ins {
background: #b0f3b0; } background: #b0f3b0; }
article h1, article h2, article h3, article h4, article h5, article h6 { article h1, article h2, article h3, article h4, article h5, article h6 {
font-weight: bold; } font-weight: 500; }
article h1 { article h1 {
font-size: 1.5rem; } font-size: 1.4rem; }
article h2 { article h2 {
font-size: 1.3rem; } font-size: 1.3rem; }
article h3 { article h3 {
@ -3163,12 +3167,20 @@ article {
article h4, article h5, article h6 { article h4, article h5, article h6 {
font-size: 1rem; } font-size: 1rem; }
article pre { article pre {
margin: 1rem 0 1rem 0; } margin: 1rem 0 1rem 0;
border: 1px solid #ddd;
border-left: 3px solid var(--button-colored-background);
background: #f4f4f4;
line-height: 1.5rem;
font-size: .8rem; }
article pre code { article pre code {
background: none; } background: none;
color: #000; }
article code { article code {
padding: 3px; padding: 3px;
background: #f1f1f1; } color: var(--link-hover);
font-style: italic;
font-family: monospace; }
article a { article a {
color: var(--link-color); color: var(--link-color);
border-bottom: 1px dotted var(--link-color); } border-bottom: 1px dotted var(--link-color); }
@ -3177,7 +3189,8 @@ article {
article p { article p {
line-height: 1.5em; } line-height: 1.5em; }
article ol, article ul { article ol, article ul {
margin: 0.5rem 0 0.5rem 3rem; } margin: 0.5rem 0 0.5rem 3rem;
line-height: 1rem; }
article ul { article ul {
list-style: disc; } list-style: disc; }
article li { article li {
@ -3536,7 +3549,6 @@ input[type="email"],
input[type="date"], input[type="date"],
input[type="number"], input[type="number"],
input[type="datetime-local"] { input[type="datetime-local"] {
font-family: Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New, monospace;
box-sizing: border-box; box-sizing: border-box;
color: var(--input-color); color: var(--input-color);
background: var(--input-background); background: var(--input-background);
@ -3678,7 +3690,8 @@ textarea, .textarea {
overflow: auto; overflow: auto;
resize: both; resize: both;
min-height: 100px; min-height: 100px;
box-sizing: border-box; } box-sizing: border-box;
font-family: Consolas, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace; }
span.checkbox, span.radio { span.checkbox, span.radio {
-moz-user-select: none; -moz-user-select: none;
@ -3852,10 +3865,8 @@ blockquote {
z-index: 1; } z-index: 1; }
.crumbs-1 li.active:not(:last-child):after, .crumbs-1 li:hover:not(:last-child):after { .crumbs-1 li.active:not(:last-child):after, .crumbs-1 li:hover:not(:last-child):after {
border-left: 14px solid var(--button-colored-background-hover); } border-left: 14px solid var(--button-colored-background-hover); }
.crumbs-1 :last-child { .crumbs-1 :last-child:before {
padding-right: 20px; } border: none; }
.crumbs-1 :last-child:before {
border: none; }
.crumbs-1 .active { .crumbs-1 .active {
cursor: default; } cursor: default; }
.crumbs-1 .active, .crumbs-1 li:hover { .crumbs-1 .active, .crumbs-1 li:hover {
@ -3915,27 +3926,25 @@ body > nav {
flex-flow: column; flex-flow: column;
box-sizing: border-box; } box-sizing: border-box; }
#nav-side span { #nav-side span {
width: 20px; flex-grow: 1; }
display: inline-block; }
#nav-side input { #nav-side input {
display: none; } display: none; }
#nav-side input:checked + ul .max { #nav-side input:checked + ul .expand {
display: inherit; } transition: all .3s ease;
#nav-side input:checked + ul .min { display: inherit;
display: none; } transform: rotateZ(90deg); }
#nav-side input:checked + ul > li:nth-child(n+2) { #nav-side input:checked + ul > li:nth-child(n+2) {
display: inherit; } display: inherit; }
#nav-side input + ul .min, #nav-side input + ul .max { #nav-side input + ul .expand {
font-size: .6rem;
transition: all .3s ease;
margin-left: 1rem; margin-left: 1rem;
float: right; } transform: rotateZ(0deg); }
#nav-side input + ul .max {
display: none; }
#nav-side input + ul .min {
display: inherit; }
#nav-side input + ul > li:nth-child(n+2) { #nav-side input + ul > li:nth-child(n+2) {
display: none; } display: none; }
#nav-side label { #nav-side label {
display: block; display: flex;
align-items: center;
padding: .5rem 1rem .5rem 1rem; padding: .5rem 1rem .5rem 1rem;
cursor: pointer; } cursor: pointer; }
#nav-side > li { #nav-side > li {
@ -3949,10 +3958,9 @@ body > nav {
background: linear-gradient(to right, var(--nav-sub-background-highlight), var(--nav-sub-background)); } background: linear-gradient(to right, var(--nav-sub-background-highlight), var(--nav-sub-background)); }
#nav-side > li li:hover, #nav-side > li li.active { #nav-side > li li:hover, #nav-side > li li.active {
background: var(--nav-category-background-hover); } background: var(--nav-category-background-hover); }
#nav-side .max, #nav-side .min {
float: right; }
#nav-side i { #nav-side i {
margin-right: 5px; } margin-right: 5px;
flex-grow: 0; }
.nav-trigger { .nav-trigger {
position: absolute; position: absolute;
@ -3963,12 +3971,13 @@ body > nav {
.nav-top { .nav-top {
user-select: none; user-select: none;
margin-top: 1rem; margin-top: 1rem;
display: block; display: block; }
background: #fff; .nav-top > li {
border: 1px solid var(--box-border); } box-shadow: 0 0 10px 3px rgba(90, 71, 114, 0.1);
.nav-top > li > a { margin-right: .5rem; }
display: inline-block; .nav-top > li > a {
padding: 10px 10px; } display: inline-block;
padding: 10px 10px; }
.nav-top li { .nav-top li {
background: #fff; background: #fff;
display: inline-block; display: inline-block;
@ -4004,7 +4013,8 @@ body > nav {
width: 0%; } width: 0%; }
#nav-trigger:checked + nav { #nav-trigger:checked + nav {
width: auto; min-width: 250px; } } width: auto;
min-width: 250px; } }
@media only screen and (max-width: 500px) { @media only screen and (max-width: 500px) {
#nav-trigger:checked + nav { #nav-trigger:checked + nav {
width: 100%; } width: 100%; }
@ -4192,8 +4202,9 @@ body > nav {
display: inline-block; } display: inline-block; }
section.box { section.box {
border: 1px solid var(--box-border); background: #fff;
background: #fff; } box-shadow: 0 0 10px 3px rgba(90, 71, 114, 0.1);
border-radius: 4px; }
section header > h1 { section header > h1 {
margin: 10px 10px 0 10px; margin: 10px 10px 0 10px;
@ -4409,3 +4420,27 @@ span.tag {
color: var(--text-on-background-color-2); color: var(--text-on-background-color-2);
background: var(--button-colored-background); background: var(--button-colored-background);
display: inline-block; } display: inline-block; }
.portlet {
box-shadow: 0 0 10px 3px rgba(90, 71, 114, 0.1);
border-radius: 4px;
box-sizing: border-box;
margin-top: 1rem;
overflow-x: auto; }
.portlet .portlet-head {
background: #fff;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
border-bottom: 1px solid #ebedf2;
padding: 1rem;
font-weight: 500; }
.portlet .portlet-foot {
background: #fff;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
border-top: 1px solid #ebedf2;
padding: 1rem; }
.portlet-body {
background: #fff;
padding: 1rem; }

View File

@ -1,3 +1,6 @@
@import "clean", "default", "size", "transformation", "alignment", "visibility", "animate", "grid"; @import "clean", "default", "size", "transformation", "alignment", "visibility", "animate", "grid";
@import "article", "layout", "draggable", "text", "tooltip", "spinner", "canvas", "form", "icon", "image", "input", "accordion", "alert", "badge", "slider", "blockquote", "breadcrumb", "button", "link", "list", "nav", "note", "pagination", "popup", "progress", "section", "tab", "table", "tag"; @import "article", "layout", "draggable", "text", "tooltip", "spinner", "canvas", "form", "icon", "image", "input", "accordion", "alert", "badge", "slider", "blockquote", "breadcrumb", "button", "link", "list", "nav", "note", "pagination", "popup", "progress", "section", "tab", "table", "tag";
@import "media"; @import "media";
@import "portlet";