Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding css #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
221 changes: 129 additions & 92 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,85 +2,111 @@
Author - Vinit Shahdeo
View more @ https://github.com/vinitshahdeo/
*/
body{
body {
display: table;
width: 100%;
background: #dedede;
text-align: center;
font-family: 'Montserrat', sans-serif;
font-family: "Montserrat", sans-serif;
color: #191919;
overflow-x: hidden;

}
*{
* {
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
-moz-box-sizing: border-box; /* Firefox, other Gecko */
box-sizing: border-box; /* Opera/IE 8+ */
-moz-box-sizing: border-box; /* Firefox, other Gecko */
box-sizing: border-box; /* Opera/IE 8+ */
}

.aa_h2{
font:100 5rem/1 Roboto;
.aa_h2 {
font: 100 5rem/1 Roboto;
text-transform: uppercase;
}
table{
background: #fff;
table {
background: #fff;
}
table,thead,tbody,tfoot,tr, td,th{
table,
thead,
tbody,
tfoot,
tr,
td,
th {
text-align: center;
margin: auto;
border:1px solid #dedede;
border: 1px solid #dedede;
padding: 1rem;
width: 50%;
}
.table { display: table; width: 80%; }
.tr { display: table-row; }
.thead { display: table-header-group }
.tbody { display: table-row-group }
.tfoot { display: table-footer-group }
.col { display: table-column }
.colgroup { display: table-column-group }
.td, .th { display: table-cell; width: auto; }
.caption { display: table-caption }
.table {
display: table;
width: 80%;
}
.tr {
display: table-row;
}
.thead {
display: table-header-group;
}
.tbody {
display: table-row-group;
}
.tfoot {
display: table-footer-group;
}
.col {
display: table-column;
}
.colgroup {
display: table-column-group;
}
.td,
.th {
display: table-cell;
width: auto;
}
.caption {
display: table-caption;
}

.table,
.thead,
.tbody,
.tfoot,
.tr,
.td,
.th{
.th {
text-align: center;
margin: auto;
padding: 1rem;
}
.table{
.table {
background: #fff;
margin: auto;
border:2px solid teal;
border: 2px solid teal;
padding: 0;
margin-bottom: 5rem;
border-collapse: collapse;
}

.th{
font-weight:900;
.th {
font-weight: 900;
color: teal;
border:2px solid teal;
&:nth-child(odd){
border-right:none;
border: 2px solid teal;
&:nth-child(odd) {
border-right: none;
}
}
.td{
.td {
font-weight: 300;
border:1px solid teal;
border-top:none;
&:nth-child(odd){
border-right:none;
border: 1px solid teal;
border-top: none;
&:nth-child(odd) {
border-right: none;
}
}

.aa_htmlTable{
font-family: 'Montserrat', sans-serif;
.aa_htmlTable {
font-family: "Montserrat", sans-serif;
padding: 3rem;
display: table;
width: 100%;
Expand All @@ -89,69 +115,80 @@ table,thead,tbody,tfoot,tr, td,th{
vertical-align: middle;
}

.heading {
font-family: "Allerta Stencil", sans-serif;
color: teal;
}

input[type="text"] {
width: 20%;
padding: 12px 20px;
margin: 8px 0;
box-sizing: border-box;
border: 2px solid teal;
border-radius: 4px;
}

.heading{
font-family: 'Allerta Stencil', sans-serif;
color:teal;
}
input[type="submit"] {
background-color: transparent; /* Green */
border: 2px solid teal;
border-radius: 6%;
color: teal;
padding: 12px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
-webkit-transition-duration: 0.4s; /* Safari */
transition-duration: 0.4s;
cursor: pointer;
}

input[type=text] {
width: 20%;
padding: 12px 20px;
margin: 8px 0;
box-sizing: border-box;
border: 2px solid teal;
border-radius: 4px;
input[type="submit"]:hover {
background-color: teal;
color: white;
}
.fa {
color: teal;
}
.title {
color: teal;
font-weight: bolder;
border: 2px solid teal;
}

input[type=submit] {
background-color: transparent; /* Green */
border: 2px solid teal;
border-radius: 6%;
color: teal;
padding: 12px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
-webkit-transition-duration: 0.4s; /* Safari */
transition-duration: 0.4s;
cursor: pointer;
.res {
font-size: 18px;
}

.neg {
color: #cd3e20;
font-size: 18px;
font-weight: 800;
}
.pos {
color: #7fff7f;
font-size: 18px;
font-weight: 800;
}
.neu {
color: #2e302c;
font-size: 18px;
font-weight: 800;
}

.author {
text-decoration: none;
}

input[type=submit]:hover {
background-color: teal;
color: white;
}
.fa{
color:teal;
}
.title{
color:teal;
font-weight: bolder;
border:2px solid teal;
}
.twitter {
color: #3498eb;
font-size: 2.1rem;
}

.res{
font-size: 18px;
}

.neg{
color:#CD3E20;
font-size: 18px;
font-weight: 800;
}
.pos{
color: teal ;
font-size: 18px;
font-weight: 800;
}
.neu {
color : #2E302C;
font-size: 18px;
font-weight: 800;
}
.git {
font-size: 2.1rem;
color: black;
margin-top: 5px;
}
7 changes: 4 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<h1 class="heading">Twitter <i class="fa fa-twitter" aria-hidden="true"></i> Sentiment Analysis</h1>
<p>Type your <strong>#Hashtags</strong> below to perform Sentiment Analysis on Twitter Results.<br> Click <b>Fetch Tweets</b> and wait for while to view the results.<br><strong><a href="https://github.com/vinitshahdeo"><i class="fa fa-github" aria-hidden="true"></i></a></strong></p>
<h1 class="heading">Twitter <i class="fa fa-twitter twitter" aria-hidden="true"></i> Sentiment Analysis</h1>
<p>Type your <strong>#Hashtags</strong> below to perform Sentiment Analysis on Twitter Results.<br> Click <b>Fetch Tweets</b> and wait for while to view the results.<br><strong><a class="author" href="https://github.com/vinitshahdeo">
<div class="row">By : vinitshahdeo </div><i class="fa fa-github git" aria-hidden="true"></i></a></strong></p>
<form method="GET">
<input type="text" name="q" required="required"/> <br>
<input type="submit" value="Fetch Tweets"/>
Expand Down Expand Up @@ -75,7 +76,7 @@
$color='#ffb2b2';
}
else if($tweet['sentiment']=='neutral') {
$color='#FFFFFF';
$color='#6666';
}
?>
<tr style="background:<?php echo $color; ?>;">
Expand Down