瀏覽代碼

more mobile optimization

master
Christian Ziermann 4 年之前
父節點
當前提交
c7180f079f
共有 3 個文件被更改,包括 230 次插入201 次删除
  1. +1
    -2
      src/app/pages/resume/resume.component.html
  2. +3
    -0
      src/app/shared/navbar/navbar.component.scss
  3. +226
    -199
      src/assets/sass/paper-kit/_responsive.scss

+ 1
- 2
src/app/pages/resume/resume.component.html 查看文件

@@ -62,8 +62,7 @@
<a href="https://www.plusserver.com/">PlusServer</a>
</td>
<td class="job-postion description">
Auszubildender Fachinformatiker Anwendungsentwicklung
(Trainee for application development)
Trainee application development
</td>
</tr>
</table>

+ 3
- 0
src/app/shared/navbar/navbar.component.scss 查看文件

@@ -0,0 +1,3 @@
svg {
padding-right: 1%;
}

+ 226
- 199
src/assets/sass/paper-kit/_responsive.scss 查看文件

@@ -1,57 +1,60 @@
/* Changes for small display */

@media (max-width: 767px){
.navbar-toggler-bar {
display: none !important;
}
.navbar-transparent{
// padding-top: 15px;
background-color: rgba(0, 0, 0, 0.45);
}
body {
position: relative;
font-size: $font-size-small;
position: relative;
font-size: $font-size-small;
}
h6{
h6 {
font-size: 1em;
}
.navbar .container{
left: 0;
width: 100%;
@include transition (0.33s, cubic-bezier(0.685, 0.0473, 0.346, 1));
position: relative;
.navbar .container {
left: 0;
width: 100%;
@include transition(0.33s, cubic-bezier(0.685, 0.0473, 0.346, 1));
position: relative;
}
.navbar .navbar-nav .dropdown-menu{
.navbar .navbar-nav .dropdown-menu {
height: 400px;
overflow-y: scroll;
}
.navbar .navbar-collapse.collapse,
.navbar .navbar-collapse.collapse.in,
.navbar .navbar-collapse.collapsing{
.navbar .navbar-collapse.collapsing {
// display: none !important;
}
.demo-header .motto{
.demo-header .motto {
padding-top: 30% !important;
}
.navbar-toggle .icon-bar {
display: block;
position: relative;
background: #fff;
width: 24px;
height: 2px;
border-radius: 1px;
margin: 0 auto;
display: block;
position: relative;
background: #fff;
width: 24px;
height: 2px;
border-radius: 1px;
margin: 0 auto;
}

.fog-low{
.fog-low {
margin-bottom: -35px;
}
.presentation-title{
.presentation-title {
font-size: 5em;
}
.presentation-subtitle{
.presentation-subtitle {
margin-top: 40px;
}
.title-brand{
.title-brand {
max-width: 450px;
.type{
.type {
font-size: 16px;
}
}
@@ -64,29 +67,29 @@
.bar1,
.bar2,
.bar3 {
outline: 1px solid transparent;
outline: 1px solid transparent;
}
.bar1 {
top: 0px;
@include bar-animation($topbar-back);
top: 0px;
@include bar-animation($topbar-back);
}
.bar2 {
opacity: 1;
opacity: 1;
}
.bar3 {
bottom: 0px;
@include bar-animation($bottombar-back);
bottom: 0px;
@include bar-animation($bottombar-back);
}
.toggled .bar1 {
top: 6px;
@include bar-animation($topbar-x);
top: 6px;
@include bar-animation($topbar-x);
}
.toggled .bar2 {
opacity: 0;
opacity: 0;
}
.toggled .bar3 {
bottom: 6px;
@include bar-animation($bottombar-x);
bottom: 6px;
@include bar-animation($bottombar-x);
}

@include topbar-x-rotation();
@@ -95,27 +98,39 @@
@include bottombar-back-rotation();

@-webkit-keyframes fadeIn {
0% {opacity: 0;}
100% {opacity: 1;}
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@-moz-keyframes fadeIn {
0% {opacity: 0;}
100% {opacity: 1;}
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes fadeIn {
0% {opacity: 0;}
100% {opacity: 1;}
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}

.navbar-nav {
margin: 1px -15px;

.open .dropdown-menu > li {
& > a{
& > a {
padding: 15px 15px 5px 50px;
}

&:first-child > a{
&:first-child > a {
padding: 5px 15px 5px 50px;
}

@@ -126,9 +141,17 @@
}

[class*="navbar-"] .navbar-nav {
& > li > a, > li > a:hover, > li > a:focus, .active > a, .active > a:hover, .active > a:focus, .open .dropdown-menu > li > a, .open .dropdown-menu > li > a:hover, .open .dropdown-menu > li > a:focus, .navbar-nav .open .dropdown-menu > li > a:active {
& > li > a,
> li > a:hover,
> li > a:focus,
.active > a,
.active > a:hover,
.active > a:focus,
.open .dropdown-menu > li > a,
.open .dropdown-menu > li > a:hover,
.open .dropdown-menu > li > a:focus,
.navbar-nav .open .dropdown-menu > li > a:active {
color: white;

}

& > li > a:not(.btn),
@@ -136,8 +159,8 @@
> li > a:focus,
.open .dropdown-menu > li > a:not(.btn),
.open .dropdown-menu > li > a:hover,
.open .dropdown-menu > li > a:focus{
opacity: .7;
.open .dropdown-menu > li > a:focus {
opacity: 0.7;
background: transparent;
}

@@ -145,7 +168,7 @@
opacity: 1;
}

& .dropdown > a{
& .dropdown > a {
&:hover .caret {
border-bottom-color: #777;
border-top-color: #777;
@@ -155,10 +178,9 @@
border-top-color: white;
}
}

}

.bootstrap-datetimepicker-widget{
.bootstrap-datetimepicker-widget {
visibility: visible;
}

@@ -169,56 +191,57 @@
-webkit-backface-visibility: hidden;
}

.social-line .btn{
.social-line .btn {
margin: $margin-bottom;
}
.subscribe-line .form-control{
.subscribe-line .form-control {
margin: $margin-bottom;
}
.social-line.pull-right{
.social-line.pull-right {
float: none;
}
.footer nav.pull-left{
.footer nav.pull-left {
float: none !important;
}
.footer:not(.footer-big) nav > ul li{
.footer:not(.footer-big) nav > ul li {
float: none;
}
.footer{
.footer {
.footer-nav,
.credits{
.credits {
margin: 0 auto;
}
}
.section-buttons{
.input-group{
.section-buttons {
.input-group {
margin-top: 15px;
}
.form-group.has-danger{
.form-control-feedback{
.form-group.has-danger {
.form-control-feedback {
margin-top: 5px;
}
}
}
.social-area.pull-right{
.social-area.pull-right {
float: none !important;
}
.form-control + .form-control-feedback{
.form-control + .form-control-feedback {
margin-top: -8px;
}
.navbar-toggle:hover,.navbar-toggle:focus {
.navbar-toggle:hover,
.navbar-toggle:focus {
background-color: transparent !important;
}
.btn.dropdown-toggle{
.btn.dropdown-toggle {
margin-bottom: 0;
}
.media-post .author{
.media-post .author {
width: 20%;
float: none !important;
display: block;
margin: 0 auto 10px;
}
.media-post .media-body{
.media-post .media-body {
width: 100%;
}
.modal-footer .btn-simple {
@@ -233,25 +256,25 @@
-ms-overflow-style: -ms-autohiding-scrollbar;
-webkit-overflow-scrolling: touch;
}
.typography-line{
.typography-line {
padding-left: 100px !important;
}

.projects-1{
& .project-pills{
& .nav.nav-pills{
.projects-1 {
& .project-pills {
& .nav.nav-pills {
display: block !important;
.nav-item{
&:first-child .nav-link{
.nav-item {
&:first-child .nav-link {
border-radius: 12px 12px 0 0 !important;
margin-left: -1px;
}
&.active:first-child .nav-link{
&.active:first-child .nav-link {
border-radius: 12px 12px 0 0 !important;
margin-left: -1px;
}

&:last-child .nav-link{
&:last-child .nav-link {
border-radius: 0 0 12px 12px !important;
margin-left: -1px;
}
@@ -260,103 +283,103 @@
}
}
.testimonials-2,
.section-testimonials{
.testimonials-people{
img{
.section-testimonials {
.testimonials-people {
img {
display: none !important;
}
}
}
.presentation-page{
.presentation-page {
.section-cards,
.section-components{
.section-components {
overflow: hidden;
.first-card{
.first-card {
top: 750px !important;
.grid__link{
.grid__link {
width: 200px !important;
}
}
.fourth-card{
.fourth-card {
top: 940px !important;
.grid__link{
.grid__link {
width: 200px !important;
}
}
.fifth-card{
.fifth-card {
top: 950px !important;
left: 220px !important;
.grid__link{
.grid__link {
width: 200px !important;
}
}
.sixth-card{
.sixth-card {
top: 1335px !important;
left: 220px !important;
.grid__link{
.grid__link {
width: 200px !important;
}
}
.seventh-card {
top: 1155px !important;
.grid__link{
.grid__link {
width: 200px !important;
}
}
}
.section-content{
.image-container{
.add-animation{
.section-content {
.image-container {
.add-animation {
height: 250px !important;
width: 180px !important;
}
}
}

.section-components{
.image-container{
.components-macbook{
.section-components {
.image-container {
.components-macbook {
width: 580px !important;
height: 400px !important;
}
.social-img,
.share-btn-img{
.share-btn-img {
display: none;
}
}
.title{
.title {
margin-top: -100px !important;
}
}

.section-examples{
.section-examples {
padding-top: 0 !important;
margin-top: 10px !important;
}

.section-icons{
.icons-nucleo{
.nc-icon:not(.ninth-left-icon):not(.seventh-left-icon):not(.third-left-icon){
.section-icons {
.icons-nucleo {
.nc-icon:not(.ninth-left-icon):not(.seventh-left-icon):not(.third-left-icon) {
display: none !important;
}
}
}
}
#typography{
.typography-line{
.note{
#typography {
.typography-line {
.note {
margin-left: 7px !important;
}
}
}
.section-nucleo-icons{
[class*='col-lg']{
text-align: center!important;
.section-nucleo-icons {
[class*="col-lg"] {
text-align: center !important;
margin-bottom: 2em;
}
}
}
@media screen and (max-width: 991px){
@media screen and (max-width: 991px) {
.navbar-collapse {
display: block;
position: fixed;
@@ -370,25 +393,25 @@
overflow-y: visible;
border-top: none;
text-align: left;
border-left: 1px solid #CCC5B9;
border-left: 1px solid #ccc5b9;
padding-right: 0px;
padding-left: 40px;
padding-top: 15px;

@include transform-translate-x(230px);
@include transition (0.33s, cubic-bezier(0.685, 0.0473, 0.346, 1));
@include transition(0.33s, cubic-bezier(0.685, 0.0473, 0.346, 1));
ul {
position: relative;
z-index: 3;
// overflow-y:scroll;
height: 95%;
}
.navbar-nav > .nav-item{
.navbar-nav > .nav-item {
// border-bottom: 1px solid;
&:last-child {
border-bottom: 0;
border-bottom: 0;
}
& > .nav-link{
& > .nav-link {
margin: 0px 0px;
color: $dark-gray !important;
text-transform: uppercase;
@@ -397,53 +420,57 @@
line-height: $line-height-general;
padding: 15px 0;
&:hover,
&:active{
&:active {
color: $default-states-color !important;
}
}
}
&::after{
&::after {
top: 0;
left: 0;
height: 100%;
width: 100%;
position: absolute;
background-color: $bg-nude;
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(112, 112, 112, 0) 60%, rgba(186, 186, 186, 0.15) 100%);
background-image: linear-gradient(
to bottom,
rgba(0, 0, 0, 0) 0%,
rgba(112, 112, 112, 0) 60%,
rgba(186, 186, 186, 0.15) 100%
);
display: block;
content: "";
z-index: 1;
}
&.has-image::after{
@include black-filter(.8);
&.has-image::after {
@include black-filter(0.8);
}
}
.nav-open{
& .navbar-collapse{
.nav-open {
& .navbar-collapse {
@include transform-translate-x(0px);
display: block;
}
& .wrapper{
& .wrapper {
left: 0;
@include transform-translate-x(-230px);
}
& .navbar-translate{
& .navbar-translate {
@include transform-translate-x(-230px);
}

}
.wrapper .navbar-collapse{
.wrapper .navbar-collapse {
display: none;
}

.fixed-top .navbar-collapse{
background-color: #FF8F5E;
.fixed-top .navbar-collapse {
background-color: #ff8f5e;
// width: 100%;
float: left;
}

.dropdown.show .dropdown-menu,
.dropdown .dropdown-menu{
.dropdown .dropdown-menu {
background-color: transparent;
border: 0;
transition: none;
@@ -452,89 +479,86 @@
width: auto;
border-radius: 0;


.dropdown-item:hover,
.dropdown-item:focus{
.dropdown-item:focus {
background-color: transparent;
border-radius:0;
border-radius: 0;
}

.dropdown-item a{

.dropdown-item a {
&:hover,
&:focus{
&:focus {
color: $default-states-color;
}
}

&:before,
&:after{
&:after {
display: none;
}
}

.dropdown{
.dropdown-menu{
display: none;
}
.dropdown {
.dropdown-menu {
display: none;
}

&.show .dropdown-menu{
display: block;
}
&.show .dropdown-menu {
display: block;
}
}

.navbar-translate{
.navbar-translate {
justify-content: space-between;
display: flex;
align-items: center;
width: 100%;
position: relative;
@include transform-translate-x(0);
@include transition (0.33s, cubic-bezier(0.685, 0.0473, 0.346, 1));
@include transition(0.33s, cubic-bezier(0.685, 0.0473, 0.346, 1));
}
.wrapper{
// @include transform-translate-x(0px);
@include transition (0.33s, cubic-bezier(0.685, 0.0473, 0.346, 1));
left: 0;
background-color: white;
.wrapper {
// @include transform-translate-x(0px);
@include transition(0.33s, cubic-bezier(0.685, 0.0473, 0.346, 1));
left: 0;
background-color: white;
}
}

@media screen and (min-width:767px){
.section-sections{
.section-cols{
@media screen and (min-width: 767px) {
.section-sections {
.section-cols {
position: relative;
z-index: 1;
.row{
&:first-of-type{
.row {
&:first-of-type {
margin-top: 50px;
margin-right: -120px;
margin-left: -15px;
@include transform-translate-x(-80px);
}
&:nth-of-type(2){
&:nth-of-type(2) {
margin-left: -100px;
margin-right: -15px;
transform: translateX(80px);
}
&:nth-of-type(3){
&:nth-of-type(3) {
margin-right: -120px;
margin-left: 0px;
transform: translateX(-120px);
}
&:nth-of-type(4){
&:nth-of-type(4) {
margin-right: -100px;
margin-left: -15px;
transform: translateX(-50px);
}
}

}
}
}

@media screen and (min-width:991px){
.burger-menu{
@media screen and (min-width: 991px) {
.burger-menu {
.navbar-collapse {
position: fixed;
display: block;
@@ -548,19 +572,19 @@
overflow-y: visible;
border-top: none;
text-align: left;
border-left: 1px solid #CCC5B9;
border-left: 1px solid #ccc5b9;
padding-right: 0px;
padding-left: 40px;
padding-top: 15px;
@include transform-translate-x(230px);
@include transition (0.33s, cubic-bezier(0.685, 0.0473, 0.346, 1));
@include transition(0.33s, cubic-bezier(0.685, 0.0473, 0.346, 1));

.navbar-nav .nav-item{
.navbar-nav .nav-item {
&:last-child {
border-bottom: 0;
}
}
.navbar-nav{
.navbar-nav {
height: 100%;
z-index: 2;
position: relative;
@@ -575,74 +599,79 @@
flex-direction: column;
}

&::after{
&::after {
top: 0;
left: 0;
height: 100%;
width: 100%;
position: absolute;
background-color: $bg-nude;
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(112, 112, 112, 0) 60%, rgba(186, 186, 186, 0.15) 100%);
background-image: linear-gradient(
to bottom,
rgba(0, 0, 0, 0) 0%,
rgba(112, 112, 112, 0) 60%,
rgba(186, 186, 186, 0.15) 100%
);
display: block;
content: "";
z-index: 1;
}
&.has-image::after{
@include black-filter(.8);
&.has-image::after {
@include black-filter(0.8);
}
}
.navbar{
.container{
.navbar-toggler{
.navbar {
.container {
.navbar-toggler {
display: block;
margin-top: 20px;
}
}
}

.navbar-translate{
.navbar-translate {
width: 100%;
position: relative;
@include transform-translate-x(0);
@include transition (0.33s, cubic-bezier(0.685, 0.0473, 0.346, 1));
@include transition(0.33s, cubic-bezier(0.685, 0.0473, 0.346, 1));
}

.wrapper{
.wrapper {
// @include transform-translate-x(0px);
@include transition (0.33s, cubic-bezier(0.685, 0.0473, 0.346, 1));
@include transition(0.33s, cubic-bezier(0.685, 0.0473, 0.346, 1));
left: 0;
background-color: white;
}

.body{
.navbar-collapse.collapse{
.body {
.navbar-collapse.collapse {
height: 100vh !important;
}
}
.navbar-collapse,
.navbar-nav{
.navbar-nav {
&:before,
&:after{
&:after {
display: table;
content: " ";
}
}

.nav-open &{
.navbar-collapse.collapse{
.nav-open & {
.navbar-collapse.collapse {
@include transform-translate-x(0px);
}
.wrapper{
.wrapper {
left: 0;
@include transform-translate-x(-230px);
}
.navbar-translate{
.navbar-translate {
@include transform-translate-x(-230px);
}
}

.dropdown.show .dropdown-menu,
.dropdown .dropdown-menu{
.dropdown .dropdown-menu {
background-color: transparent;
border: 0;
transition: none;
@@ -651,41 +680,39 @@
width: auto;
border-radius: 0;


.dropdown-item:hover,
.dropdown-item:focus{
.dropdown-item:focus {
background-color: transparent;
border-radius:0;
border-radius: 0;
}

.dropdown-item a{

.dropdown-item a {
&:hover,
&:focus{
&:focus {
color: $default-states-color;
}
}

&:before,
&:after{
&:after {
display: none;
}
}

.dropdown{
.dropdown-menu{
display: none;
}
.dropdown {
.dropdown-menu {
display: none;
}

&.show .dropdown-menu{
display: block;
}
&.show .dropdown-menu {
display: block;
}
}
}
}
@media screen and (max-width: 1025px){
.input-group{
.input-group-addon{
@media screen and (max-width: 1025px) {
.input-group {
.input-group-addon {
padding-right: 10px;
}
}

Loading…
取消
儲存