Skip to content

Commit

Permalink
Merge pull request #776 from ElamathiiSelvan/patch-30
Browse files Browse the repository at this point in the history
countword.css
  • Loading branch information
Ayushparikh-code authored Oct 27, 2024
2 parents 16b22d5 + 3147c0e commit 780680c
Showing 1 changed file with 78 additions and 173 deletions.
251 changes: 78 additions & 173 deletions word counter/word.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


html, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
Expand All @@ -13,225 +11,132 @@ article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;

}
body{
background-image: linear-gradient(#fec8d8, #ffdfd3);
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
/* End of reset CSS */


/* border box */
html {
box-sizing: border-box;
-webkit-user-select: none; /* Chrome all / Safari all */
-moz-user-select: none; /* Firefox all */
-ms-user-select: none; /* IE 10+ */
user-select: none; /* Likely future */
}
*, *:before, *:after {
box-sizing: inherit;
}
b {
font-weight: bold;
}

/* main app styles */
body {
width: 700px;
margin: 0 auto;
background-color: #FAFAFA;
font-family: 'Source Sans Pro', sans-serif;
color: #111;
background-image: linear-gradient(#fec8d8, #ffdfd3);
line-height: 1.5;
font-family: 'Source Sans Pro', sans-serif;
color: #111;
width: 700px;
margin: 0 auto;
}

.container {
margin: 2% auto;
padding: 15px;
background-color: #FFFFFF;
-webkit-box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.2);
box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.2);
margin: 2% auto;
padding: 15px;
background-color: #FFFFFF;
box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);
}

h1 {
font-size: 3rem;
font-weight: 900;
text-align: center;
margin: 1% 0 3%;
font-size: 3rem;
font-weight: 900;
text-align: center;
margin: 1% 0 3%;
}

textarea {
width: 100%;
height: 250px;
padding: 10px;
border: 1px solid #d9d9d9;
outline: none;
font-size: 1rem;
resize: none;
line-height: 1.5rem;
width: 100%;
height: 250px;
padding: 10px;
border: 1px solid #d9d9d9;
outline: none;
font-size: 1rem;
resize: none;
line-height: 1.5rem;
}

textarea:hover {
border-color: #C0C0C0;
border-color: #C0C0C0;
}

textarea:focus {
border-color: #4D90FE;
border-color: #4D90FE;
}

.output.row {
width: 100%;
border: 1px solid #DDD;
font-size: 1.4rem;
margin: 1% 0;
background-color: #F9F9F9;
width: 100%;
border: 1px solid #DDD;
font-size: 1.4rem;
margin: 1% 0;
background-color: #F9F9F9;
}

.output.row div {
display: inline-block;
width: 42%;
padding: 10px 15px;
margin: 1%;
display: inline-block;
width: 42%;
padding: 10px 15px;
margin: 1%;
}

.output.row span {
font-weight: bold;
font-size: 1.5rem;
font-weight: bold;
font-size: 1.5rem;
}

#readability {
width: 52%;
font-weight: bold;
width: 52%;
font-weight: bold;
}

#readability:hover {
background-color: #4D90FE;
color: #FFF;
border-radius: 2px;
cursor: pointer;
background-color: #4D90FE;
color: #FFF;
border-radius: 2px;
cursor: pointer;
}

#readability:active {
background-color: #307AF3;
background-color: #307AF3;
}

.keywords {
display: none;
margin: 4% 0 0;
font-size: 2rem;
font-weight: 900;
display: none;
margin: 4% 0 0;
font-size: 2rem;
font-weight: 900;
}

.keywords ul {
font-weight: 400;
border: 1px solid #DDD;
font-size: 1.4rem;
background-color: #F9F9F9;
margin: 2% 0;
font-weight: 400;
border: 1px solid #DDD;
font-size: 1.4rem;
background-color: #F9F9F9;
margin: 2% 0;
}

.keywords li {
display: inline-block;
width: 44%;
padding: 10px;
margin: 1%;
display: inline-block;
width: 44%;
padding: 10px;
margin: 1%;
}


/*
** Making it responsive
*/


/* Responsive styles */
@media (max-width: 750px) {
body {
width: 600px;
}
.output.row {
font-size: 1.2rem;
}
.output.row span {
font-size: 1.3rem;
}
.keywords ul {
font-size: 1.2rem;
}
body {
width: 600px;
}
.output.row {
font-size: 1.2rem;
}
.output.row span {
font-size: 1.3rem;
}
.keywords ul {
font-size: 1.2rem;
}
}

@media (max-width: 600px) {

/* rewriting old styles */
body {
width: 95%;
}
.output.row {
border: none;
background-color: #FFF;
}
.output.row div {
display: block;
width: 100%;
padding: 10px 15px;
margin: 2% auto;
border: 1px solid #DDD;
font-size: 1.8rem;
background-color: #F9F9F9;
}
.output.row span {
font-size: 2rem;
}
#readability {
width: 100%;
font-size: 1.6rem;
font-weight: 400;
}

.keywords {
margin: 10% auto;
}

.keywords ul {
font-weight: 400;
border: none;
font-size: 1.8rem;
background-color: #F9F9F9;
margin: 5% 0;
}

.keywords li {
display: block;
width: 100%;
padding: 10px;
margin: 2% auto;
border: 1px solid #DDD;
}

}
body {
width: 95%;
}
.output.r

0 comments on commit 780680c

Please sign in to comment.