Simplify Errors (404 & 403)

TODO: Use a generic error template and pass error/text
This commit is contained in:
2017-06-12 16:49:43 +02:00
parent de96e8e189
commit 3a500f3ea3
8 changed files with 88 additions and 231 deletions

View File

@@ -1,180 +1,73 @@
body.error
width: 100%
height: 100%
.error-watchamissing
padding: 0 15px
h2
color: $color-danger
font-size: 1.5em
h3
margin-top: 5px
font-size: 1.4em
p
color: $color-text-light-primary
font-size: .95em
a:hover
text-decoration: none
h3
color: lighten($color-primary, 10%)
p
color: $color-text-light
#error_container
#error-container
display: flex
justify-content: center
align-items: center
position: absolute
top: 0
left: 0
right: 0
bottom: 0
height: 100%
padding: 0 15px
&.standalone
width: 100%
height: 100%
position: fixed
#error_box
padding: 25px
.error-lead
padding: 10px 10px
p
display: block
&.extra
padding-top: 0
a
color: $color-primary
#error_box
min-width: 60%
width: 100%
max-width: 800px
#error-box
display: flex
justify-content: center
align-items: center
flex-direction: column
min-width: 300px
+container-box
box-shadow: 0 0 15px rgba(black, .2)
padding: 0
background-color: $color-background-nav
border-top-left-radius: 3px
border-top-right-radius: 3px
overflow: hidden
border: thin solid $color-background-dark
background-color: $color-background-light
box-shadow: 1px 1px 2px rgba(black, .1)
border-radius: 3px
.error-top-container
position: relative
width: 100%
background-color: $color-background-nav
.error-top-header-overlay
background: repeating-linear-gradient(-45deg, rgba(white, .1), rgba(white, .1) 10px, transparent 10px, transparent 20px)
position: absolute
top: 0
left: 0
right: 0
bottom: 0
width: 100%
z-index: 1
.error-top-header
width: 100%
position: absolute
top: 0
bottom: 0
background:
size: cover
position-y: 12%
z-index: 0
padding: 25px 25px 0
.error-title
position: relative
z-index: 2
width: auto
display: flex
margin: 0 auto
padding: 25px 0 10px 0
color: white
font:
size: 1.8em
weight: 300
span.icon
display: flex
align-items: center
font-size: 2em
span.text
display: flex
align-items: center
text-align: left
line-height: 1.2em
margin-right: auto
.error-lead
position: relative
z-index: 1
display: block
width: 100%
line-height: 1.6em
color: $color-text-light-secondary
font:
size: .9em
weight: 300
a
text-decoration: none
&:hover
text-decoration: underline
&.extra
padding: 15px
color: $color-text-dark-primary
border-top: thin solid $color-background-dark
background-color: lighten($color-background, 2%)
padding: 10px 25px
font-size: .9em
color: $color-text-light-secondary
hr
margin: 0 0
margin: 10px 0
width: 100%
border: none
height: 3px
background-color: lighten($color-background-nav, 5%)
.buttons
position: relative
z-index: 2
margin: 5px 0 20px 5px
height: 1px
background-color: $color-background-dark
.error-cta
padding: 10px 25px
a
font-size: 1.2em
margin: 0 15px
margin: 0 15px 0 0
padding: 5px
text-decoration: none
&.sign-up
+button($color-primary, 3px, true)
&.sign-in
+button($color-background, 3px)
border-color: transparent
+button($color-text-dark-primary, 3px)
#node-overlay
#error_container
@include overlay(rgba($color-background-nav, .8), 0%, transparent, 60%)
#error-container
position: fixed
top: $navbar-height
align-items: flex-start
#error_box
top: 50px
position: absolute
left: 50%
transform: translateX(-50%)
border-radius: 3px
box-shadow: 0 0 100px rgba(black, .85)
overflow: hidden
#error-box
box-shadow: 0 0 25px rgba(black, .1), 0 0 50px rgba(black, .1)
width: auto
border-top-left-radius: 0
border-top-right-radius: 0
position: relative
width: 100%

View File

@@ -688,6 +688,7 @@ ul.project_nav-edit-list
transition: opacity 250ms ease-in-out
&.active
opacity: 1
display: block !important
#comments-embed
padding: 5px 20px 20px 20px

View File

@@ -23,6 +23,7 @@
+clearfix
@mixin button($mixin-color, $roundness, $filled: false)
display: inline-flex
font-family: $font-body
text-transform: uppercase
padding:

View File

@@ -14,6 +14,7 @@ html
-moz-osx-font-smoothing: grayscale
body
height: 100%
font:
family: $font-body, sans-serif
size: $font-size