HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URL's added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by Skypack, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ES6 import
usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<header class='header'>
<h1 id='title' class='header__title'>Katherine Johnson</h1>
<nav class='header__nav'>
<ul class='header__nav__menu'>
<li class='dropdown'><span class='dropdown__btn'>Biography</span>
<ul class='dropdown__menu'>
<li class='dropdown__menu__item'><a class='dropdown__menu__link' href='#early-life'>Early life</a></li>
<li class='dropdown__menu__item'>
<div class='dropdown__menu__item__separator'></div>
</li>
<li class='dropdown__menu__item'><a class='dropdown__menu__link' href='#career'>Career</a></li>
<li class='dropdown__menu__item'>
<div class='dropdown__menu__item__separator'></div>
</li>
<li class='dropdown__menu__item'><a class='dropdown__menu__link' href='#personal-life-and-death'>Personal life and death</a></li>
<li class='dropdown__menu__item'>
<div class='dropdown__menu__item__separator'></div>
</li>
<li class='dropdown__menu__item'><a class='dropdown__menu__link' href='#awards'>Awards</a></li>
</ul>
</li>
<li class='dropdown'><span class='dropdown__btn'>Movie</span>
<ul class='dropdown__menu'>
<li class='dropdown__menu__item'><a class='dropdown__menu__link' href='#plot'>Plot</a></li>
<li class='dropdown__menu__item'>
<div class='dropdown__menu__item__separator'></div>
</li>
<li class='dropdown__menu__item'><a class='dropdown__menu__link' href='#cast'>Cast</a></li>
</ul>
</li>
<li class='dropdown'>
<span class='dropdown__btn'>Book</span>
<ul class='dropdown__menu'>
<li class='dropdown__menu__item'><a class='dropdown__menu__link' href='#introduction'>Intro</a></li>
<li class='dropdown__menu__item'>
<div class='dropdown__menu__item__separator'></div>
</li>
<li class='dropdown__menu__item'><a class='dropdown__menu__link' href='#topic'>Topic</a></li>
</ul>
</li>
</ul>
</nav>
</header>
<main id='main' class='page-content'>
<article id='tribute-info' class='article-content'>
<header class='article-header'>
<h2 id='biography' class='article-header__title'>Biography</h2>
</header>
<section class='section-content'>
<figure id='img-div' class='photo'>
<img id='image' class='photo__img' src='https://github.com/HawksSpawn/images-for-fcc/blob/main/katherine-johnson-image.jpeg?raw=true' alt='Image of Katherine Johnson' />
<figcaption id='img-caption' class='photo__caption'>
Katherine Johnson, pictured here at NASA's Langley Research Center, where she worked as a computer and mathematician.
</figcaption>
</figure>
<h3 id='early-life' class='section-content__title'>Early life</h3>
<p class='section-content__text'>
Katherine Johnson was born as Creola Katherine Coleman on August 26, 1918, in White Sulphur Springs, West Virginia, to Joylette Roberta
(née Lowe) and Joshua McKinley Coleman. She was the youngest of four children. Her mother was a teacher and her father was a lumberman,
farmer, and handyman, and worked at the Greenbrier Hotel.
</p>
<p class='section-content__text'>
After graduating from high school at 14, Johnson enrolled at West Virginia State, a historically black college.
She graduated summa cum laude in 1937, with degrees in mathematics and French, at age 18. She took on a teaching job at a black public
school in Marion, Virginia.
</p>
<p class='section-content__text'>
In 1939, after marrying her first husband, James Goble, she left her teaching job and enrolled in a graduate math program. She quit one
year later after becoming pregnant and chose to focus on her family life. She was the first African-American woman to attend graduate
school at West Virginia University in Morgantown, West Virginia.
</p>
</section>
<section class='section-content'>
<h3 id='career' class='section-content__title'>Career</h3>
<p class='section-content__text'>
Johnson decided on a career as a research mathematician, although this was a difficult field for African Americans and women to enter.
The first jobs she found were in teaching. At a family gathering in 1952, a relative mentioned that the National Advisory Committee for
Aeronautics (NACA) was hiring mathematicians. At the Langley Memorial Aeronautical Laboratory, based in Hampton, Virginia, near
Langley Field, NACA hired African-American mathematicians as well as whites for their Guidance and Navigation Department. Johnson
accepted a job offer from the agency in June 1953.
</p>
<p class='section-content__text'>
In 1958, NACA became NASA, and the Space Race began. Johnson's passion was geometry, which was useful for calculating the
trajectories of spacecraft. For NASA's 1961 Mercury mission, she knew that the trajectory would be a parabola, a type of symmetrical
curve. So when NASA wanted the capsule to come down at a certain place, she was not deterred.
</p>
<p class='section-content__text'>
<q>You tell me when you want it and where you want it to land, and I'll do it backwards and tell you when to take off,</q> Johnson said.
Subsequent orbital missions were more complicated, with more variables involving the position and rotation of the Earth, so
Johnson used a celestial training device to perform her calculations.
</p>
<p class='section-content__text'>
The next challenge was to send humans to the moon, and Johnson's calculations helped sync the Apollo 11 lunar lander with the
moon-orbiting command and service module to get the astronauts back to Earth. She also proved invaluable on the Apollo 13 mission,
providing backup procedures that helped ensure the crew's safe return after their craft malfunctioned. She later helped to develop
the space shuttle program and Earth resources satellite, and she co-authored 26 research reports before retiring in 1986.
</p>
</section>
<section class='section-content'>
<h3 id='personal-life-and-death' class='section-content__title'>Personal life and death</h3>
<p class='section-content__text'>
Katherine and James Francis Goble had three daughters: Constance, Joylette, and Katherine. The family lived in Newport News, Virginia,
from 1953. James died of an inoperable brain tumor in 1956 and, three years later, Katherine married James A, a United States Army
officer and veteran of the Korean War.
</p>
<p class='section-content__text'>
Johnson died Feb. 24, 2020, at age 101. NASA Administrator Jim Bridenstine announced her death and promised that her legacy would
be remembered.
</p>
<p class='section-content__text'>
<q>Our NASA family is sad to learn the news that Katherine Johnson passed away this morning at 101 years old. She was an American hero,
we will never forget her courage and leadership and the milestones we could not have reached without her,</q> Bridenstine said.
<q>We will continue building on her legacy.</q>
</p>
</section>
<section class='section-content'>
<h3 id='awards' class='section-content__title'>Awards</h3>
<figure class='photo'>
<img class='photo__img' src='https://raw.githubusercontent.com/HawksSpawn/images-for-fcc/main/obama-medal-freedom.webp' alt='President Barack Obama rewards Johnson' />
<figcaption class='photo__caption'>
President Barack Obama awarded Johnson the Presidential Medal of Freedom, America's highest civilian
honor, <time datetime='2015-11-24'>2015</time>.
</figcaption>
</figure>
<ul class='list'>
<li class='list__item'><strong><time datetime='1971'>1971</time></strong>, <strong><time datetime='1980'>1980</time></strong>,
<strong><time datetime='1984'>1984</time></strong>, <strong><time datetime='1985'>1985</time></strong>,
<strong><time datetime='1986'>1986</time></strong>: NASA Langley Research Center Special Achievement award
</li>
<li class='list__item'><strong><time datetime='1977'>1977</time></strong>, NASA Group Achievement Award presented to the Lunar Spacecraft and
Operations team – for pioneering work in the field of navigation supporting the spacecraft that orbited and mapped the
Moon in preparation for the Apollo program</li>
<li class='list__item'><strong><time datetime='1998'>1998</time></strong>, Honorary Doctor of Laws, from SUNY Farmingdale</li>
<li class='list__item'><strong><time datetime='1999'>1999</time></strong>, West Virginia State College Outstanding Alumnus of the Year</li>
<li class='list__item'><strong><time datetime='2006'>2006</time></strong>, Honorary Doctor of Science by the Capitol College, Laurel, Maryland</li>
<li class='list__item'><strong><time datetime='2010'>2010</time></strong>, Honorary Doctorate of Science from Old Dominion University, Norfolk, Virginia</li>
<li class='list__item'><strong><time datetime='2014'>2014</time></strong>, De Pizan Honor from National Women's History Museum</li>
<li class='list__item'><strong><time datetime='2015'>2015</time></strong>, NCWIT Pioneer in Tech Award</li>
<li class='list__item'><strong><time datetime='2015'>2015</time></strong>, Presidential Medal of Freedom</li>
<li class='list__item'><strong><time datetime='2016'>2016</time></strong>, Silver Snoopy award from Leland Melvin</li>
<li class='list__item'><strong><time datetime='2016'>2016</time></strong>, Astronomical Society of the Pacific's Arthur B.C. Walker II Award</li>
<li class='list__item'><strong><time datetime='2016'>2016</time></strong>, Presidential Honorary Doctorate of Humane Letters from West Virginia
University, Morgantown, West Virginia</li>
<li class='list__item'>On <strong><time datetime='2016-12-01'>December 1, 2016</time></strong>, Johnson received the Langley West Computing Unit
NASA Group Achievement Award at a reception at the Virginia Air and Space Center. Other awardees included her colleagues,
Dorothy Vaughan and Mary Jackson.</li>
<li class='list__item'><strong><time datetime='2017'>2017</time></strong>, Daughters of the American Revolution (DAR) Medal of Honor</li>
<li class='list__item'><strong><time datetime='2017'>2017</time></strong> Honorary Doctorate from Spelman College</li>
<li class='list__item'><strong><time datetime='2018-05-12'>May 12, 2018</time></strong>, Honorary Doctorate of Science from the College of William &
Mary, Williamsburg, Virginia</li>
<li class='list__item'>On <strong><time datetime='2019-04-29'>April 29, 2019</time></strong>, the University of Johannesburg and its Faculty of
Science conferred Johnson with the degree of Philosophiae Doctor Honoris causa for her pioneering role at NASA.</li>
<li class='list__item'><strong><time datetime='2019-11-08'>November 8, 2019</time></strong>, Congressional Gold Medal</li>
<li class='list__item'><strong><time datetime='2021'>2021</time></strong>, Induction into the National Women's Hall of Fame</li>
</ul>
</section>
</article>
<article class='article-content'>
<header class='article-header'>
<h2 id='movie' class='article-header__title'>Movie</h2>
</header>
<section class='section-content'>
<h3 id='plot' class='section-content__title'>Plot</h3>
<p class='section-content__text'>
Katherine Johnson works at the Langley Research Center in Hampton, Virginia in 1961, alongside her colleagues Mary Jackson and Dorothy
Vaughan. All of them are African-American women; the unit is segregated by race and sex. White supervisor Vivian Mitchell assigns Katherine
to assist Al Harrison's Space Task Group, given her skills in analytic geometry. She becomes the first Black woman on the team; head engineer
Paul Stafford is especially dismissive.
</p>
<p class='section-content__text'>
Mary is assigned to the space capsule heat shield team, where she immediately identifies a design flaw. Encouraged by her team leader
Karl Zielinski, a Polish-Jewish Holocaust survivor, Mary applies for an official NASA engineer position. She is told by Mitchell that,
regardless of her mathematics and physical science degree, the position requires additional courses. Mary files a petition for permission to
attend all-white Hampton High School, despite her husband's opposition. Pleading her case in court, she wins over the local judge by appealing
to his sense of history, allowing her to attend night classes.
</p>
<p class='section-content__text'>
Katherine meets African-American National Guard Lt. Col. Jim Johnson, who voices skepticism about women's mathematical abilities. He later
apologizes and begins spending time with Katherine and her three daughters. The Mercury 7 astronauts visit Langley, and astronaut John
Glenn goes out of his way to greet the West Area women. Katherine impresses Harrison by solving a complex mathematical equation from
redacted documents, as the Soviet Union's successful launch of Yuri Gagarin increases pressure to send American astronauts into space.
</p>
<p class='section-content__text'>
Harrison confronts Katherine about her "breaks," unaware that she is forced to walk a half-mile (800 meters) to use the nearest colored
people's bathroom. She angrily explains the discrimination she faces at work, which leads Harrison to knock down the "Colored Bathroom"
sign and abolish bathroom segregation. He allows Katherine to be included in high-level meetings to calculate the space capsule's
re-entry point. Stafford makes Katherine remove her name from reports, insisting that computers cannot author them, and her work is credited
solely to Stafford.
</p>
<figure class='photo'>
<img class='photo__img' src='https://github.com/HawksSpawn/images-for-fcc/blob/main/hidden-figures-movie.png?raw=true' alt='Image of the film hidden figures' />
<figcaption class='photo__caption'>
An incredible & inspiring untold true story about three women at NASA who were instrumental in one of history’s
greatest operations – the launch of astronaut John Glenn into orbit.
</figcaption>
</figure>
<p class='section-content__text'>
Informed by Mitchell that there are no plans to assign a "permanent supervisor for the colored group," Dorothy learns NASA has installed
an IBM 7090 electronic computer that threatens to replace human computers. When a librarian scolds her for visiting the whites-only
section, Dorothy takes a book about Fortran and teaches herself and her West Area co-workers programming. She visits the computer room,
successfully starts the machine, and is promoted to supervise the Programming Department; she agrees to do so if thirty of her
co-workers are transferred as well. Mitchell finally addresses her as "Mrs. Vaughan."
</p>
<p class='section-content__text'>
Making final arrangements for John Glenn's launch, the department no longer needs human computers; Katherine is reassigned to the West
Area and marries Jim. On the day of the launch, discrepancies are found in the IBM 7090 calculations, and Katherine is asked to check
the capsule's landing coordinates. She delivers the results to the control room, and Harrison allows her inside. After a successful
launch and orbit, a warning indicates the capsule's heat shield may be loose. Mission Control decides to land Glenn after three orbits
instead of seven, and Katherine supports Harrison's suggestion to leave the retro-rocket attached to help keep the heat shield in place.
The Friendship 7 lands successfully.
</p>
<p class='section-content__text'>
Though the mathematicians are ultimately replaced by electronic computers, a textual epilogue reveals Mary obtained her engineering
degree and became NASA's first female African-American engineer; Dorothy continued as NASA's first African-American supervisor; and
Katherine, accepted by Stafford as a report co-author, went on to calculate the trajectories for the Apollo 11 and Space Shuttle
missions. In 2015, she was awarded the Presidential Medal of Freedom. In 2016, NASA dedicated the Langley Research Center's Katherine
Johnson Computational Building in her honor.
</p>
</section>
<section class='section-content'>
<h3 id='cast' class='section-content__title'>Cast</h3>
<div class='cast-container'>
<div class='actor'>
<img class='actor__img' src='https://github.com/HawksSpawn/images-for-fcc/blob/main/taraj-henson.jpg?raw=true' alt='taraj henson image'>
<p class='actor__role'>Taraji P. Henson as Katherine Goble Johnson, mathematician</p>
</div>
<div class='actor'>
<img class='actor__img' src='https://github.com/HawksSpawn/images-for-fcc/blob/main/octavia-spencer.jpg?raw=true' alt='octavia spencer image'>
<p class='actor__role'>Octavia Spencer as Dorothy Vaughan, mathematician and supervisor</p>
</div>
<div class='actor'>
<img class='actor__img' src='https://raw.githubusercontent.com/HawksSpawn/images-for-fcc/main/janelle-mon%C3%A1e.webp' alt='janelle monáe image'>
<p class='actor__role'>Janelle Monáe as Mary Jackson, mathematician and engineer</p>
</div>
<div class='actor'>
<img class='actor__img' src='https://github.com/HawksSpawn/images-for-fcc/blob/main/kevin-costner.jpg?raw=true' alt='kevin costner image'>
<p class='actor__role'>Kevin Costner as Al Harrison, director of the Space Task Group (STG)</p>
</div>
<div class='actor'>
<img class='actor__img' src='https://github.com/HawksSpawn/images-for-fcc/blob/main/kirsten-dunst.jpeg?raw=true' alt='kirsten dunst image'>
<p class='actor__role'>Kirsten Dunst as Vivian Mitchell, supervisor</p>
</div>
<div class='actor'>
<img class='actor__img' src='https://github.com/HawksSpawn/images-for-fcc/blob/main/jim-parsons.jpg?raw=true' alt='jim parsons image'>
<p class='actor__role'>Jim Parsons as Paul Stafford, head engineer in STG</p>
</div>
<div class='actor'>
<img class='actor__img' src='https://github.com/HawksSpawn/images-for-fcc/blob/main/mahershala-ali.jpg?raw=true' alt='mahershala ali image'>
<p class='actor__role'>Mahershala Ali as Jim Johnson, military officer who romances and eventually marries Katherine</p>
</div>
<div class='actor'>
<img class='actor__img' src='https://github.com/HawksSpawn/images-for-fcc/blob/main/aldis-hodge.jpg?raw=true' alt='aldis hodge image'>
<p class='actor__role'>Aldis Hodge as Levi Jackson</p>
</div>
<div class='actor'>
<img class='actor__img' src='https://github.com/HawksSpawn/images-for-fcc/blob/main/glen-powell.jpg?raw=true' alt='glen powell image'>
<p class='actor__role'>Glen Powell as John Glenn, astronaut</p>
</div>
<div class='actor'>
<img class='actor__img' src='https://github.com/HawksSpawn/images-for-fcc/blob/main/kimberly-quinn.jpg?raw=true' alt='kimberly quinn image'>
<p class='actor__role'>Kimberly Quinn as Ruth</p>
</div>
<div class='actor'>
<img class='actor__img' src='https://github.com/HawksSpawn/images-for-fcc/blob/main/olek-krupa.jpg?raw=true' alt='olek krupa image'>
<p class='actor__role'>Olek Krupa as Karl Zielinski, engineer (a fictionalized version of Kazimierz Czarnecki who encourages Mary Jackson)</p>
</div>
<div class='actor'>
<img class='actor__img' src='https://github.com/HawksSpawn/images-for-fcc/blob/main/saniyya-sidney.jpg?raw=true' alt='saniyya sidney image'>
<p class='actor__role'>Saniyya Sidney as Constance Johnson</p>
</div>
</div>
</section>
</article>
<article class='article-content'>
<header class='article-header'>
<h2 id='book' class='article-header__title'>Book</h2>
</header>
<section class='section-content'>
<h3 id='introduction' class='section-content__title'>Introduction</h3>
<p class='section-content__text'>
Hidden Figures: The American Dream and the Untold Story of the Black Women Who Helped Win the Space Race is a 2016 nonfiction book written
by Margot Lee Shetterly. Shetterly started working on the book in 2010. The book takes place from the 1930s through the 1960s when
some viewed women as inferior to men. The biographical text follows the lives of Katherine Johnson, Dorothy Vaughan, and Mary Jackson,
three mathematicians who worked as computers (then a job description) at NACA and NASA, during the space race. They overcame discrimination
there, as women and as African Americans. Also featured is Christine Darden, who was the first African-American woman to be promoted into
the Senior Executive Service for her work in researching supersonic flight and sonic booms.
</p>
<figure class='photo'>
<img class='photo__img' src='https://github.com/HawksSpawn/images-for-fcc/blob/main/margot-lee-shetterly.jpeg?raw=true' alt='Image of Margot Lee Shetterly with her book "Hidden Figures"' />
<figcaption class='photo__caption'>Image of author Margot Lee Shetterly on the right with her book "Hidden Figures" on the left</figcaption>
</figure>
</section>
<section class='section-content'>
<h3 id='topic' class='section-content__title'>Topic</h3>
<p class='section-content__text'>
Hidden Figures tells the story of three African-American women who worked as computers to solve problems for engineers and others at NASA.
For the first years of their careers, the workplace was segregated and women were kept in the background as human computers. Author
Margot Lee Shetterly's father was a research scientist at NASA who worked with many of the book's main characters.
</p>
<p class='section-content__text'>
The book explains how these three historical women overcame discrimination and racial segregation to become three American
achievers in mathematics, scientific and engineering history. The main character, Katherine Johnson, calculated rocket trajectories
for the Mercury and Apollo missions. Johnson successfully "took matters into her own hands"; by being assertive with her supervisor; when her
mathematical abilities were recognized, Katherine Johnson was allowed into what had previously been all-male meetings at NASA.
</p>
</section>
<footer class='footer'>
Read more about <a id='tribute-link' class='footer__link' href='https://en.wikipedia.org/wiki/Katherine_Johnson' target='_blank' rel='noopener noreferrer'>
Katherine Johnson's life</a> on <em>Wikipedia</em>.
</footer>
</article>
</main>
<footer class='footer footer--page'>
<span class='footer__copyright'>HawksSpawn © 2021</span>
<a class='footer__social-link' href='https://www.freecodecamp.org/hawksspawn' target='_blank' rel='noopener noreferrer'><i class='fab fa-free-code-camp'></i></a>
<a class='footer__social-link' href='https://codepen.io/hawksspawn' target='_blank' rel='noopener noreferrer'><i class='fab fa-codepen'></i></a>
<a class='footer__social-link' href='https://github.com/HawksSpawn' target='_blank' rel='noopener noreferrer'><i class='fab fa-github'></i></a>
</footer>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* ---------------------------- Mobile S - 320px ---------------------------- */
/* ---------------------------- Mobile M - 375px ---------------------------- */
/* ---------------------------- Mobile L - 425px ---------------------------- */
:root {
/* https://www.color-name.com/ */
--azure: #0086ff;
--ebony: #555d50;
--true-blue: #006ade;
--winter-wizard: #96d9ff;
font-size: 8px;
scroll-padding-top: 45px;
}
.header {
top: 0;
width: 100%;
display: flex;
position: fixed;
align-items: center;
justify-content: space-between;
padding: 0.5rem 0 0.5rem 0.8rem;
background-color: var(--azure, dodgerblue);
}
.header__title {
font-size: 3rem;
font-family: 'Italianno', cursive;
}
.dropdown {
position: relative;
display: inline-block;
}
.dropdown__btn {
cursor: pointer;
font-size: 1.4rem;
padding: 1.75rem 1rem;
font-family: sans-serif;
}
.dropdown:hover .dropdown__btn {
color: white;
background-color: var(--true-blue, royalblue);
}
.dropdown__menu {
z-index: 1;
width: 100%;
display: none;
position: absolute;
text-align: center;
margin-top: 1.58rem;
background-color: var(--true-blue, royalblue);
}
.dropdown:hover .dropdown__menu {
display: block;
}
.dropdown__menu__item {
list-style-type: none;
}
.dropdown__menu__item__separator {
width: 90%;
margin: 0.15rem auto;
border-bottom: 1px solid white;
}
.dropdown__menu__link {
color: black;
display: block;
font-size: 1.4rem;
padding: 12px 8px;
text-decoration: none;
}
.dropdown__menu__link:hover {
background-color: var(--winter-wizard, lightskyblue);
}
.page-content {
width: 90%;
margin: 0 auto;
}
.article-header {
margin-top: 8rem;
margin-bottom: 4rem;
border: 1px solid black;
}
.article-header__title {
font-size: 2.5rem;
text-align: center;
padding-bottom: 0.3rem;
border-bottom: 1px solid black;
font-family: 'Lobster Two', cursive;
}
.section-content {
margin-bottom: 4rem;
}
.section-content__title {
width: 50%;
margin: 0 auto;
font-size: 2rem;
text-align: center;
margin-bottom: 2.5rem;
padding-bottom: 0.2rem;
font-family: 'Lobster Two', cursive;
border-bottom: 2px solid var(--azure, dodgerblue);
}
.section-content__text {
font-size: 1.6rem;
line-height: 2.7rem;
margin-bottom: 1.5rem;
font-family: 'Roboto', sans-serif;
}
.photo {
margin-bottom: 2.5rem;
}
.photo__img {
height: auto;
display: block;
margin: 0 auto;
max-width: 100%;
}
.photo__caption {
text-align: center;
margin-top: 0.75rem;
font: 1.2rem sans-serif;
color: var(--ebony, gray);
}
.list {
width: 70%;
margin: 0 auto;
list-style: none;
font-size: 1.6rem;
}
.list__item::before {
width: 2.5rem;
content: '\1F680';
margin-left: -2.5rem;
display: inline-block;
}
.list__item {
line-height: 2.7rem;
margin-bottom: 1rem;
}
.cast-container {
display: grid;
grid-gap: 4rem;
margin-top: 5rem;
grid-template-columns: 1fr 1fr;
}
.actor {
text-align: center;
}
.actor__img {
width: 90px;
height: 90px;
object-fit: cover;
border-radius: 50%;
box-shadow: 5px 5px 15px 5px var(--true-blue, royalblue);
}
.actor__role {
font-size: 1.5rem;
margin-top: 1.8rem;
font-family: 'Roboto', sans-serif;
}
.footer {
text-align: center;
font: 1.45rem small-caps;
}
.footer__link:link,
.footer__link:visited,
.footer__link:hover,
.footer__link:active {
color: blue;
text-decoration: none;
}
.footer--page {
display: flex;
padding: 0.8rem;
margin-top: 1.5rem;
align-items: center;
justify-content: space-around;
background-color: var(--azure, dodgerblue);
}
.footer__copyright {
font-size: 1.2rem;
font-family: 'Sigmar One', cursive;
}
.footer__social-link {
color: black;
}
.footer__social-link:hover {
opacity: 0.7;
}
.fab {
font-size: 2rem;
}
/* ----------------------------- Tablet - 768px ----------------------------- */
@media only screen and (min-width: 768px) {
:root {
font-size: 9.5px;
scroll-padding-top: 60px;
}
.dropdown__btn {
padding: 1.75rem 2.5rem;
}
.dropdown__menu {
margin-top: 1.61rem;
}
.actor__img {
width: 130px;
height: 130px;
}
}
/* ---------------------------- Laptop - 1024px ---------------------------- */
@media only screen and (min-width: 1024px) {
:root {
font-size: 10px;
scroll-padding-top: 65px;
}
.list {
width: 50%;
}
.cast-container {
grid-template-columns: 1fr 1fr 1fr;
}
}
/* --------------------------- Laptop M - 1200px --------------------------- */
@media only screen and (min-width: 1200px) {
:root {
font-size: 10.5px;
scroll-padding-top: 70px;
}
.list {
width: 40%;
}
}
Also see: Tab Triggers