Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #42 from roannav/split-into-separate-files
Browse files Browse the repository at this point in the history
make images responsive and use natural aspect ratio.  cleanup styles.css
  • Loading branch information
roannav authored Oct 9, 2023
2 parents 2bc27b5 + 7afda8a commit 5d7dfd8
Showing 1 changed file with 54 additions and 35 deletions.
89 changes: 54 additions & 35 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
*::after {
box-sizing: border-box;
}
body{
font-family: 'Ubuntu', sans-serif;

body {
font-family: "Ubuntu", sans-serif;
}

:root {
Expand All @@ -21,17 +22,17 @@ header {
cursor: pointer;
}

.note-header{
.note-header {
background-color: aliceblue;
color: #000000;
padding: 10px 7px;
}

.note-header a{
.note-header a {
color: blue;
}

.note-header a:hover{
.note-header a:hover {
color: #005cb7;
}

Expand All @@ -43,15 +44,15 @@ section {

.screen h1 {
font-size: 3.7rem;
font-family: 'Arvo', serif;
font-family: "Arvo", serif;
text-align: center;
padding: 10px;
line-height: 60px;
word-spacing: 10px;
text-shadow: 3px 0 #08931f;
}

.screen h6{
.screen h6 {
font-size: 1.5rem;
margin: 5px;
}
Expand Down Expand Up @@ -83,23 +84,16 @@ img {
border-radius: 5%;
margin-top: 20px;
margin-bottom: 20px;
height:400px;
margin-left:auto;
margin-right:auto;
width:50%;
margin-left: auto;
margin-right: auto;
width: 100%;
display: block;
}

.btn-infos {
background-color: #018307;
border-radius: 10px;
text-decoration: none;
}

@media (max-width: 760px) {
.character img {
width: 100%;
}
background-color: #018307;
border-radius: 10px;
text-decoration: none;
}

a {
Expand Down Expand Up @@ -129,16 +123,18 @@ a {
}

.character img {
height: 350px;
max-width: 100%;
/* make images shrink and grow responsively,
but once at it's natural width, it stops growing
*/
max-width: 50%;
}

p,
a {
font-size: 1.2rem;
padding: 5px;
line-height: 25px;
margin-bottom: 20px;
margin-bottom: 20px;
}
}

Expand Down Expand Up @@ -168,8 +164,9 @@ a {
cursor: pointer;
}

.active, .collapsible:hover {
background-color: #4CAF50;
.active,
.collapsible:hover {
background-color: #4caf50;
}

.content {
Expand All @@ -184,45 +181,66 @@ a {
padding: 1em;
}

/**********************************************************************
*
* Footer Note styles
*
**********************************************************************/

.note-footer{
.note-footer {
background-color: #00000050;
color: white;
padding: 10px 5px;
}

.note-footer a{
color: #4CAF50;
.note-footer a {
color: #4caf50;
}

.note-footer a:hover{
.note-footer a:hover {
color: white;
}

/**********************************************************************
*
* Navbar styles
*
**********************************************************************/

.navbar-container {
display: flex;
justify-content: space-around;
align-items: center;
justify-content: space-around;
align-items: center;
background-color: #333;
color: white;
padding: 10px;
padding: 10px;
list-style: none;

}

.navbar-container li {
padding: 0 10px;
padding: 0 10px;
}

.navbar-container a {
text-decoration: none;
color: white;
transition: color 0.3s;
}

.navbar-container a:hover {
color: #ccc;
}

html{
/**********************************************************************
*
* Back to Top Button styles
*
**********************************************************************/

html {
scroll-behavior: smooth;
}

#backToTop {
display: none;
position: fixed;
Expand All @@ -242,3 +260,4 @@ html{
#backToTop:hover {
background-color: #555;
}

0 comments on commit 5d7dfd8

Please sign in to comment.