coderuday21 commited on
Commit
a4d589b
·
1 Parent(s): ee00a0f

Make nav and footer span full viewport width

Browse files
Files changed (1) hide show
  1. static/css/style.css +13 -6
static/css/style.css CHANGED
@@ -49,6 +49,7 @@ body {
49
  min-height: 100vh;
50
  line-height: 1.6;
51
  -webkit-font-smoothing: antialiased;
 
52
  }
53
 
54
  body::before {
@@ -341,10 +342,13 @@ input:focus, select:focus, textarea:focus {
341
  display: flex;
342
  align-items: center;
343
  justify-content: space-between;
344
- margin: -1.5rem -1.5rem 2rem;
345
- padding: 1rem 1.5rem;
 
 
 
346
  background: var(--gradient-h);
347
- border-radius: var(--radius) var(--radius) 0 0;
348
  box-shadow: 0 4px 20px rgba(46, 51, 197, 0.25);
349
  }
350
  .nav-brand {
@@ -755,11 +759,14 @@ input:focus, select:focus, textarea:focus {
755
 
756
  /* ---- Footer ---- */
757
  .app-footer {
758
- margin: 3rem -1.5rem -1.5rem;
759
- padding: 1.25rem 1.5rem;
 
 
 
760
  background: var(--gradient-h);
761
  text-align: center;
762
- border-radius: 0 0 var(--radius) var(--radius);
763
  }
764
  .app-footer p {
765
  font-size: 0.78rem;
 
49
  min-height: 100vh;
50
  line-height: 1.6;
51
  -webkit-font-smoothing: antialiased;
52
+ overflow-x: hidden;
53
  }
54
 
55
  body::before {
 
342
  display: flex;
343
  align-items: center;
344
  justify-content: space-between;
345
+ width: 100vw;
346
+ margin-left: calc(-50vw + 50%);
347
+ margin-top: -1.5rem;
348
+ margin-bottom: 2rem;
349
+ padding: 1rem calc((100vw - 1100px) / 2 + 1.5rem);
350
  background: var(--gradient-h);
351
+ border-radius: 0;
352
  box-shadow: 0 4px 20px rgba(46, 51, 197, 0.25);
353
  }
354
  .nav-brand {
 
759
 
760
  /* ---- Footer ---- */
761
  .app-footer {
762
+ width: 100vw;
763
+ margin-left: calc(-50vw + 50%);
764
+ margin-top: 3rem;
765
+ margin-bottom: -1.5rem;
766
+ padding: 1.25rem calc((100vw - 1100px) / 2 + 1.5rem);
767
  background: var(--gradient-h);
768
  text-align: center;
769
+ border-radius: 0;
770
  }
771
  .app-footer p {
772
  font-size: 0.78rem;