Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
css: Use SCSS nesting for `.portico-landing.features-app`.
SiddharthVarshneybe8027cb544f
diff --git a/static/styles/portico/landing-page.scss b/static/styles/portico/landing-page.scssindex a802442e029..0d527f6d72b 100644--- a/static/styles/portico/landing-page.scss+++ b/static/styles/portico/landing-page.scss@@ -382,284 +382,284 @@ nav {padding-top: 0px;z-index: 2;-}--.portico-landing.features-app section {- max-width: 1440px;- display: flex;- flex: 1 1 auto;- flex-flow: row wrap;- justify-content: space-around;- margin: 40px auto;- padding: 0px 30px;- color: hsl(219, 21%, 21%);- &.hero {+ section {+ max-width: 1440px;display: flex;- align-items: center;- justify-content: center;+ flex: 1 1 auto;+ flex-flow: row wrap;+ justify-content: space-around;+ margin: 40px auto;+ padding: 0px 30px;+ color: hsl(219, 21%, 21%);- height: 400px;- padding: 100px 100px 50px 100px;+ &.hero {+ display: flex;+ align-items: center;+ justify-content: center;- margin: 0;+ height: 400px;+ padding: 100px 100px 50px 100px;- max-width: none;+ margin: 0;- color: hsl(0, 0%, 100%);+ max-width: none;- background-color: hsla(0, 0%, 0%, 0.1);+ color: hsl(0, 0%, 100%);- .copy {- max-width: 800px;- margin: 0 auto;+ background-color: hsla(0, 0%, 0%, 0.1);- text-align: center;- }-- h1 {- margin: 0;- font-size: 3.7em;- }+ .copy {+ max-width: 800px;+ margin: 0 auto;- h2 {- font-size: 1.8em;- margin: 30px auto 0 auto;+ text-align: center;+ }- max-width: 600px;- line-height: 1.3;- }+ h1 {+ margin: 0;+ font-size: 3.7em;+ }- .image {- height: 400px;- width: 40%;- background-color: hsla(0, 0%, 0%, 0.05);- }- }+ h2 {+ font-size: 1.8em;+ margin: 30px auto 0 auto;- &.keyboard-shortcuts {- display: flex;- justify-content: center;- align-items: center;- position: relative;- max-width: none;- padding: 50px;- /* this should only be a thing if the section above is not white */- margin-top: 0px;- background-color: hsl(219, 21%, 21%);- color: hsl(219, 76%, 93%);-- img {- &.overflow-wave {- width: 685px;- right: 0px;- top: -168px;- position: absolute;+ max-width: 600px;+ line-height: 1.3;}- &.image {- width: 600px;- margin-left: 100px;+ .image {+ height: 400px;+ width: 40%;+ background-color: hsla(0, 0%, 0%, 0.05);}}- h3 {- font-size: 3em;- }+ &.keyboard-shortcuts {+ display: flex;+ justify-content: center;+ align-items: center;+ position: relative;+ max-width: none;+ padding: 50px;+ /* this should only be a thing if the section above is not white */+ margin-top: 0px;+ background-color: hsl(219, 21%, 21%);+ color: hsl(219, 76%, 93%);- .feature-block {- width: 50%;- }+ img {+ &.overflow-wave {+ width: 685px;+ right: 0px;+ top: -168px;+ position: absolute;+ }- p {- font-size: 1.2em;- }+ &.image {+ width: 600px;+ margin-left: 100px;+ }+ }- a.cta {- font-size: 1em;- color: hsl(170, 52%, 70%);- }- }+ h3 {+ font-size: 3em;+ }- &.messages {- display: flex;- justify-content: center;- align-items: center;+ .feature-block {+ width: 50%;+ }- margin: 50px auto;- padding: 0px 50px;+ p {+ font-size: 1.2em;+ }- .image {- width: calc(100% - 500px - 100px);- margin: 50px 0px 50px 50px;- max-width: 500px;+ a.cta {+ font-size: 1em;+ color: hsl(170, 52%, 70%);+ }}- .features {- max-width: 500px;+ &.messages {+ display: flex;+ justify-content: center;+ align-items: center;- h2 {- margin: 0;+ margin: 50px auto;+ padding: 0px 50px;++ .image {+ width: calc(100% - 500px - 100px);+ margin: 50px 0px 50px 50px;+ max-width: 500px;}- .feature-block {- display: block;- margin: 30px 0px;+ .features {+ max-width: 500px;++ h2 {+ margin: 0;+ }++ .feature-block {+ display: block;+ margin: 30px 0px;+ }}}- }- &.notifications {- position: relative;+ &.notifications {+ position: relative;- padding: 50px 100px;- max-width: calc(1000px);+ padding: 50px 100px;+ max-width: calc(1000px);- background-color: hsl(0, 0%, 100%);- border-radius: 10px;+ background-color: hsl(0, 0%, 100%);+ border-radius: 10px;- box-shadow: 10px 20px 80px hsla(0, 0%, 0%, 0.15);- margin: 100px auto 150px auto;- text-align: center;+ box-shadow: 10px 20px 80px hsla(0, 0%, 0%, 0.15);+ margin: 100px auto 150px auto;+ text-align: center;- .envelope {- position: absolute;- top: 0;- left: 0;- width: 100%;- max-height: 40vw;- }+ .envelope {+ position: absolute;+ top: 0;+ left: 0;+ width: 100%;+ max-height: 40vw;+ }- h2 {- position: relative;+ h2 {+ position: relative;- margin-bottom: 120px;- top: -0px;- }+ margin-bottom: 120px;+ top: -0px;+ }- .feature-list {- position: relative;+ .feature-list {+ position: relative;- display: inline-block;- vertical-align: top;- text-align: left;+ display: inline-block;+ vertical-align: top;+ text-align: left;- margin: 35px 0px 0px 20px;+ margin: 35px 0px 0px 20px;- z-index: 1;+ z-index: 1;- h3 {- position: relative;+ h3 {+ position: relative;- margin: 15px 0px 15px 50px;+ margin: 15px 0px 15px 50px;- font-size: 1.2em;- font-weight: 400;+ font-size: 1.2em;+ font-weight: 400;- color: hsl(0, 0%, 53%);+ color: hsl(0, 0%, 53%);- &::before {- content: " ";- display: block;- position: absolute;+ &::before {+ content: " ";+ display: block;+ position: absolute;- left: -35px;- top: 0px;- width: 20px;- height: 20px;+ left: -35px;+ top: 0px;+ width: 20px;+ height: 20px;- border-radius: 4px;+ border-radius: 4px;- background-image: url(/static/images/checkbox-green.svg);- background-size: 100% auto;- background-position: center;- background-repeat: no-repeat;+ background-image: url(/static/images/checkbox-green.svg);+ background-size: 100% auto;+ background-position: center;+ background-repeat: no-repeat;+ }}}- }- .image-block {- width: 400px;- height: 280px;+ .image-block {+ width: 400px;+ height: 280px;++ background: linear-gradient(135deg, hsla(0, 0%, 0%, 0.05), hsla(0, 0%, 0%, 0.2));+ border-radius: 4px;- background: linear-gradient(135deg, hsla(0, 0%, 0%, 0.05), hsla(0, 0%, 0%, 0.2));- border-radius: 4px;+ background-image: url(/static/images/landing-page/notifications.jpg);+ background-size: contain;+ background-position: center;+ background-repeat: no-repeat;- background-image: url(/static/images/landing-page/notifications.jpg);- background-size: contain;- background-position: center;- background-repeat: no-repeat;+ display: inline-block;+ }+ }+ .feature-block {display: inline-block;+ vertical-align: top;}- }- .feature-block {- display: inline-block;- vertical-align: top;- }+ .headliner {+ .feature-block {+ margin: 0px 10px;+ width: calc(100% - 250px - 20px);+ }+ }- .headliner {- .feature-block {+ h2 {+ font-size: 2.5em;+ text-align: center;margin: 0px 10px;- width: calc(100% - 250px - 20px);+ line-height: 1.6;+ flex: 1 0 100%;}- }- h2 {- font-size: 2.5em;- text-align: center;- margin: 0px 10px;- line-height: 1.6;- flex: 1 0 100%;- }-- > .feature-block {- padding: 10px 20px;- flex: 1 1 320px;- color: inherit;- }+ > .feature-block {+ padding: 10px 20px;+ flex: 1 1 320px;+ color: inherit;+ }- a {- &.feature-block {- &:hover {- box-shadow: 0px 3px 10px hsl(0, 0%, 75%);- }+ a {+ &.feature-block {+ &:hover {+ box-shadow: 0px 3px 10px hsl(0, 0%, 75%);+ }- &:active {- box-shadow: 0px 3px 10px hsl(0, 0%, 50%);+ &:active {+ box-shadow: 0px 3px 10px hsl(0, 0%, 50%);+ }}}}-}-.portico-landing.features-app .cta {- &::after {- content: "\2192";+ .cta {+ &::after {+ content: "\2192";- margin-left: 5px;- transform: scaleX(2);+ margin-left: 5px;+ transform: scaleX(2);- transition: all 0.3s ease;- }+ transition: all 0.3s ease;+ }- &:hover {- &::after {- margin-left: 10px;+ &:hover {+ &::after {+ margin-left: 10px;+ }}}-}-.portico-landing.features-app .feature-block {- h3 {- font-size: 1.2em;- font-weight: 600;- }+ .feature-block {+ h3 {+ font-size: 1.2em;+ font-weight: 600;+ }- p {- margin: 0;+ p {+ margin: 0;- opacity: 0.8;+ opacity: 0.8;+ }}}@@ -2995,35 +2995,36 @@ nav {}}- .portico-landing.features-app section {- .headliner {- .image {- width: 200px;- height: 200px;- }+ .portico-landing.features-app {+ section {+ .headliner {+ .image {+ width: 200px;+ height: 200px;+ }- .feature-box {- width: calc(100% - 200px - 20px);+ .feature-box {+ width: calc(100% - 200px - 20px);+ }}- }- &.messages {- display: block;- text-align: center;+ &.messages {+ display: block;+ text-align: center;- > * {- display: inline-block;- text-align: left;- }+ > * {+ display: inline-block;+ text-align: left;+ }- .image {- width: 100%;- margin: 0;+ .image {+ width: 100%;+ margin: 0;+ }}}}-.portico-landing.plans .compare .padded-content {width: auto;}@@ -3131,12 +3132,14 @@ nav {display: none;}- .portico-landing.features-app section {- &.notifications {- padding: 50px 10px;+ .portico-landing.features-app {+ section {+ &.notifications {+ padding: 50px 10px;- .image-block {- display: none;+ .image-block {+ display: none;+ }}}}@@ -3152,17 +3155,19 @@ nav {}@media (max-width: 830px) {- .portico-landing.features-app section {- .headliner {- display: inline-flex;+ .portico-landing.features-app {+ section {+ .headliner {+ display: inline-flex;- width: auto;- height: 250px;+ width: auto;+ height: 250px;- margin: 50px;+ margin: 50px;- justify-content: center;- align-items: center;+ justify-content: center;+ align-items: center;+ }}}@@ -3300,14 +3305,16 @@ nav {width: 100%;}- .portico-landing.features-app section {- padding: 0px 20px;+ .portico-landing.features-app {+ section {+ padding: 0px 20px;- &.hero {- padding: 50px;+ &.hero {+ padding: 50px;- h1 {- font-size: 3em;+ h1 {+ font-size: 3em;+ }}}}@@ -3566,11 +3573,13 @@ nav {margin: 10px 16px 0 16px;}- .portico-landing.features-app section {- &.keyboard-shortcuts {- img {- &.overflow-wave {- top: -100px;+ .portico-landing.features-app {+ section {+ &.keyboard-shortcuts {+ img {+ &.overflow-wave {+ top: -100px;+ }}}}@@ -3578,21 +3587,23 @@ nav {}@media (max-width: 550px) {- .portico-landing.features-app section {- &.hero {- padding: 50px 20px 20px;- }+ .portico-landing.features-app {+ section {+ &.hero {+ padding: 50px 20px 20px;+ }- &.messages {- padding: 0px 20px;+ &.messages {+ padding: 0px 20px;- h2 {- font-size: 2em;- }+ h2 {+ font-size: 2em;+ }- .features {- .feature-block {- margin: 20px 0px;+ .features {+ .feature-block {+ margin: 20px 0px;+ }}}}@@ -3748,11 +3759,13 @@ nav {width: 323px;}- .portico-landing.features-app section {- &.keyboard-shortcuts {- img {- &.overflow-wave {- top: -92px;+ .portico-landing.features-app {+ section {+ &.keyboard-shortcuts {+ img {+ &.overflow-wave {+ top: -92px;+ }}}}@@ -3760,11 +3773,13 @@ nav {}@media (max-width: 360px) {- .portico-landing.features-app section {- .keyboard-shortcuts {- img {- &.overflow-wave {- top: -88px;+ .portico-landing.features-app {+ section {+ .keyboard-shortcuts {+ img {+ &.overflow-wave {+ top: -88px;+ }}}}@@ -3773,11 +3788,13 @@ nav {/* For iPhone 5/SE device */@media (max-width: 320px) {- .portico-landing.features-app section {- .keyboard-shortcuts {- img {- &.overflow-wave {- top: -78px;+ .portico-landing.features-app {+ section {+ .keyboard-shortcuts {+ img {+ &.overflow-wave {+ top: -78px;+ }}}}