1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-05 05:45:22 +02:00

feat(templates): new templates capabilities (#862)

This commit is contained in:
Anthony Lapenna 2017-05-18 23:00:08 +02:00 committed by GitHub
parent c3363604ac
commit 0579251c70
10 changed files with 276 additions and 159 deletions

View file

@ -64,6 +64,13 @@ html, body, #content-wrapper, .page-content, #view {
color: #777;
}
.form-section-title {
border-bottom: 1px solid #777;
margin-top: 5px;
margin-bottom: 15px;
color: #777;
}
.form-horizontal .control-label.text-left{
text-align: left;
font-size: 0.9em;
@ -149,11 +156,6 @@ a[ng-click]{
cursor: pointer;
}
.template-list {
display: flex;
flex-wrap: wrap;
}
.custom-header-ico {
max-width: 32px;
max-height: 32px;
@ -176,81 +178,6 @@ a[ng-click]{
}
}
/* Underline From Center */
.hvr-underline-from-center {
display: inline-block;
vertical-align: middle;
-webkit-transform: translateZ(0);
transform: translateZ(0);
box-shadow: 0 0 1px rgba(0, 0, 0, 0);
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
-moz-osx-font-smoothing: grayscale;
position: relative;
overflow: hidden;
}
.hvr-underline-from-center:before {
content: "";
position: absolute;
z-index: -1;
left: 50%;
right: 50%;
bottom: 0;
background: #85898b;
height: 2px;
-webkit-transition-property: left, right;
transition-property: left, right;
-webkit-transition-duration: 0.3s;
transition-duration: 0.3s;
-webkit-transition-timing-function: ease-out;
transition-timing-function: ease-out;
}
.hvr-underline-from-center:hover:before, .hvr-underline-from-center:focus:before, .hvr-underline-from-center:active:before {
left: 0;
right: 0;
}
.container-template {
font-size: 1em;
width: 256px;
height: 128px;
margin: 15px;
padding: 5px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
border-radius: 10px;
cursor: pointer;
border: 2px solid #f6f6f6;
color: #30426a;
}
.container-template--selected {
background-color: #ececec;
color: #2d3e63;
}
.container-template:hover {
background-color: #ececec;
color: #2d3e63;
}
.container-template .logo {
max-width: 48px;
max-height: 48px;
}
.container-template .title {
text-align: center;
}
.container-template .description {
text-align: center;
font-size: 0.8em;
margin-bottom: 5px;
}
.page-wrapper {
height: 100%;
width: 100%;
@ -418,3 +345,68 @@ ul.sidebar .sidebar-list .sidebar-sublist a.active {
#toast-container > div {
opacity: 0.9;
}
.template-widget {
height: 100%;
}
.template-widget-body {
max-height: 86%;
overflow-y: auto;
}
.template-list {
display: flex;
flex-direction: column;
}
.template-logo {
width: 100%;
max-width: 60px;
height: 100%;
max-height: 60px;
}
.template-container {
padding: 0.7rem;
margin-bottom: 0.7rem;
cursor: pointer;
border: 1px solid #333333;
border-radius: 2px;
box-shadow: 0 3px 10px -2px rgba(161, 170, 166, 0.5);
}
.template-container--selected {
border: 2px solid #333333;
background-color: #ececec;
color: #2d3e63;
}
.template-container:hover {
background-color: #ececec;
color: #2d3e63;
}
.template-main {
display: flex;
}
.template-note {
padding: 0.5em;
font-size: 0.9em;
}
.template-title {
font-size: 1.8em;
font-weight: bold;
}
.template-description {
font-size: 0.9em;
padding-right: 1em;
}
.template-line {
display: flex;
justify-content: space-between;
}