Jelajahi Sumber

removed fontawesome

Abram Kash 6 tahun lalu
induk
melakukan
8cfc6b8c89
5 mengubah file dengan 30 tambahan dan 10 penghapusan
  1. 0 1
      help/index.html
  2. 12 4
      index.html
  3. 0 1
      quiz/index.html
  4. 8 3
      results/index.html
  5. 10 1
      style.css

+ 0 - 1
help/index.html

@@ -9,7 +9,6 @@
 
 	<meta name="description" content="Welcome to the PolitiScale, the online political test. You will be confronted to a series of affirmations and for each of them you will have to click on the button which corresponds the most to your opinion.">
 	<link rel="stylesheet" href="/style.css" type="text/css" media="screen">
-	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
 	<meta property="og:url" content="https://dbhq.github.io/">
 	<meta property="og:title" content="PolitiScales, DBHQ Edition">
 	<meta property="og:locale" content="en_US">

+ 12 - 4
index.html

@@ -9,7 +9,6 @@
 
 	<meta name="description" content="Welcome to the PolitiScale, the online political test. You will be confronted to a series of affirmations and for each of them you will have to click on the button which corresponds the most to your opinion.">
 	<link rel="stylesheet" href="/style.css" type="text/css" media="screen">
-	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
 	<meta property="og:url" content="https://dbhq.github.io/">
 	<meta property="og:title" content="PolitiScales, DBHQ Edition">
 	<meta property="og:locale" content="en_US">
@@ -32,9 +31,18 @@
 			<p class="simpleText ltr">Welcome to the PolitiScale, the online political test. You will be confronted to a series of affirmations and for each of them you will have to click on the button which corresponds the most to your opinion.</p>
 			<br/>
 
-			<p class="simpleText ltr"><i class="fa fa-bell" aria-hidden="true"></i> The questions assume that your are a citizen of a multi-party political system and a market economy.</p>
-			<p class="simpleText ltr"><i class="fa fa-bell" aria-hidden="true"></i> You can always avoid answering a question. But if you do not understand the meaning of one of them, try to invert its meaning for a better understanding of what is implied.</p>
-			<p class="simpleText ltr"><i class="fa fa-exclamation-triangle" aria-hidden="true"></i> This test tries to represent the wider set of ideas as possible and contains some phrases that can be shocking, notably concerning racism and homosexuality.</p>
+			<p class="simpleText ltr">
+				<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"/></svg>
+				The questions assume that your are a citizen of a multi-party political system and a market economy.
+			</p>
+			<p class="simpleText ltr">
+				<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"/></svg>
+				You can always avoid answering a question. But if you do not understand the meaning of one of them, try to invert its meaning for a better understanding of what is implied.
+			</p>
+			<p class="simpleText ltr">
+				<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/></svg>
+				This test tries to represent the wider set of ideas as possible and contains some phrases that can be shocking, notably concerning racism and homosexuality.
+			</p>
 
 			<div class="navButtons">
 				<a class="button" href="/quiz">Start the test</a>

+ 0 - 1
quiz/index.html

@@ -9,7 +9,6 @@
 
 	<meta name="description" content="Welcome to the PolitiScale, the online political test. You will be confronted to a series of affirmations and for each of them you will have to click on the button which corresponds the most to your opinion.">
 	<link rel="stylesheet" href="/style.css" type="text/css" media="screen">
-	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
 	<meta property="og:url" content="https://dbhq.github.io/">
 	<meta property="og:title" content="PolitiScales, DBHQ Edition">
 	<meta property="og:locale" content="en_US">

+ 8 - 3
results/index.html

@@ -9,7 +9,6 @@
 
 	<meta name="description" content="Welcome to the PolitiScale, the online political test. You will be confronted to a series of affirmations and for each of them you will have to click on the button which corresponds the most to your opinion.">
 	<link rel="stylesheet" href="/style.css" type="text/css" media="screen">
-	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
 	<meta property="og:url" content="https://dbhq.github.io/">
 	<meta property="og:title" content="PolitiScales, DBHQ Edition">
 	<meta property="og:locale" content="en_US">
@@ -40,8 +39,14 @@
 				<div id="urlToCopy" class="urlToCopy"></div>
 			</div>
 			<div class="navButtons">
-				<button class="button buttonLink" onclick="shareLink();" id="buttonLink"><i class="fa fa-link" aria-hidden="true"></i> Copy Link</button>
-				<button id="download" target="_blank" class="button buttonLink" onclick="download_image();"><i class="fa fa-download" aria-hidden="true"></i> Download</button>
+				<button class="button buttonLink" onclick="shareLink();" id="buttonLink">
+					<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/></svg>
+					Copy Link
+				</button>
+				<button id="download" target="_blank" class="button buttonLink" onclick="download_image();">
+					<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM17 13l-5 5-5-5h3V9h4v4h3z"/></svg>
+					Download
+				</button>
 			</div>
 
 			<hr/>

+ 10 - 1
style.css

@@ -71,7 +71,9 @@ h3 {
   max-width: 640px;
   margin: 1em auto 2em;
 }
-
+.simpleText svg {
+  vertical-align: text-bottom;
+}
 .columnContainer {
   position: relative;
 }
@@ -232,6 +234,13 @@ h3 {
 .buttonLink:hover {
   color: #500076;
 }
+.buttonLink svg {
+  fill: #fff;
+  vertical-align: text-bottom;
+}
+.buttonLink:hover svg {
+  fill: #500076;
+}
 .buttonLinkGood {
   background-color: #0eb31a;
   color: white;