Skip to content

Commit

Permalink
Prefix error page css so that it doesn't conflict (hpi-swt2#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
tom95 authored Jan 20, 2017
1 parent 81204b2 commit 7c0974f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions public/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@
<title>The page you were looking for doesn't exist (404)</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<style>
body {
body.error-page {
background-color: #EFEFEF;
color: #2E2F30;
text-align: center;
font-family: arial, sans-serif;
margin: 0;
}

div.dialog {
.error-page div.dialog {
width: 95%;
max-width: 33em;
margin: 4em auto 0;
}

div.dialog > div {
.error-page div.dialog > div {
border: 1px solid #CCC;
border-right-color: #999;
border-left-color: #999;
Expand All @@ -31,13 +31,13 @@
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
}

h1 {
.error-page h1 {
font-size: 100%;
color: #730E15;
line-height: 1.5em;
}

div.dialog > p {
.error-page div.dialog > p {
margin: 0 0 1em;
padding: 1em;
background-color: #F7F7F7;
Expand All @@ -54,7 +54,7 @@
</style>
</head>

<body>
<body class="error-page">
<!-- This file lives in public/404.html -->
<div class="dialog">
<div>
Expand Down
12 changes: 6 additions & 6 deletions public/422.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@
<title>The change you wanted was rejected (422)</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<style>
body {
body.error-page {
background-color: #EFEFEF;
color: #2E2F30;
text-align: center;
font-family: arial, sans-serif;
margin: 0;
}

div.dialog {
.error-page div.dialog {
width: 95%;
max-width: 33em;
margin: 4em auto 0;
}

div.dialog > div {
.error-page div.dialog > div {
border: 1px solid #CCC;
border-right-color: #999;
border-left-color: #999;
Expand All @@ -31,13 +31,13 @@
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
}

h1 {
.error-page h1 {
font-size: 100%;
color: #730E15;
line-height: 1.5em;
}

div.dialog > p {
.error-page div.dialog > p {
margin: 0 0 1em;
padding: 1em;
background-color: #F7F7F7;
Expand All @@ -54,7 +54,7 @@
</style>
</head>

<body>
<body class="error-page">
<!-- This file lives in public/422.html -->
<div class="dialog">
<div>
Expand Down
12 changes: 6 additions & 6 deletions public/500.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@
<title>We're sorry, but something went wrong (500)</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<style>
body {
body.error-page {
background-color: #EFEFEF;
color: #2E2F30;
text-align: center;
font-family: arial, sans-serif;
margin: 0;
}

div.dialog {
.error-page div.dialog {
width: 95%;
max-width: 33em;
margin: 4em auto 0;
}

div.dialog > div {
.error-page div.dialog > div {
border: 1px solid #CCC;
border-right-color: #999;
border-left-color: #999;
Expand All @@ -31,13 +31,13 @@
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
}

h1 {
.error-page h1 {
font-size: 100%;
color: #730E15;
line-height: 1.5em;
}

div.dialog > p {
.error-page div.dialog > p {
margin: 0 0 1em;
padding: 1em;
background-color: #F7F7F7;
Expand All @@ -54,7 +54,7 @@
</style>
</head>

<body>
<body class="error-page">
<!-- This file lives in public/500.html -->
<div class="dialog">
<div>
Expand Down

0 comments on commit 7c0974f

Please sign in to comment.