Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Development_of_Web_Applications
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Silas Meister
Development_of_Web_Applications
Commits
b781ec99
Commit
b781ec99
authored
1 year ago
by
Silas Meister
Browse files
Options
Downloads
Patches
Plain Diff
Make page a little responsible
parent
474c40dd
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
index.html
+2
-2
2 additions, 2 deletions
index.html
styles.css
+58
-6
58 additions, 6 deletions
styles.css
with
60 additions
and
8 deletions
index.html
+
2
−
2
View file @
b781ec99
...
@@ -23,13 +23,13 @@
...
@@ -23,13 +23,13 @@
<li><a
href=
"#"
>
NASA Audiences
</a></li>
<li><a
href=
"#"
>
NASA Audiences
</a></li>
<li>
<li>
<form
class=
"search-form"
method=
"post"
accept-charset=
"UTF-8"
>
<form
class=
"search-form"
method=
"post"
accept-charset=
"UTF-8"
>
<input
type=
"search"
size=
"10"
placeholder=
"Search"
/>
<input
type=
"search"
placeholder=
"Search"
/>
<input
type=
"button"
/>
<input
type=
"button"
/>
</form>
</form>
</li>
</li>
<li><img
src=
"img/share_icon.png"
/></li>
<li><img
src=
"img/share_icon.png"
/></li>
</ul>
</ul>
<ul
class=
"center-nav"
>
<ul
class=
"center-nav"
>
<li><a
href=
"#"
>
International Space Station
</a></li>
<li><a
href=
"#"
>
International Space Station
</a></li>
<li><a
href=
"#"
>
Journey to Mars
</a></li>
<li><a
href=
"#"
>
Journey to Mars
</a></li>
...
...
This diff is collapsed.
Click to expand it.
styles.css
+
58
−
6
View file @
b781ec99
...
@@ -11,13 +11,12 @@ body, html {
...
@@ -11,13 +11,12 @@ body, html {
}
}
body
{
body
{
position
:
relative
;
background-image
:
url('img/background.png')
;
background-image
:
url('img/background.png')
;
background-repeat
:
repeat
;
background-repeat
:
repeat
;
background-position
:
center
;
background-position
:
center
;
background-size
:
auto
100%
;
background-size
:
auto
100%
;
width
:
75%
;
height
:
auto
;
height
:
auto
;
margin
:
auto
;
background-color
:
#666666
;
background-color
:
#666666
;
}
}
...
@@ -70,12 +69,17 @@ nav ul li a {
...
@@ -70,12 +69,17 @@ nav ul li a {
}*/
}*/
.nasa-img
{
.nasa-img
{
width
:
7em
;
position
:
absolute
;
float
:
left
;
left
:
0
;
top
:
0
;
width
:
5em
;
z-index
:
-1
;
}
}
.top-nav
{
.top-nav
{
display
:
flex
;
display
:
flex
;
overflow
:
hidden
;
flex-wrap
:
nowrap
;
flex-direction
:
row
;
flex-direction
:
row
;
justify-content
:
flex-end
;
justify-content
:
flex-end
;
align-items
:
center
;
align-items
:
center
;
...
@@ -111,7 +115,7 @@ nav ul li a {
...
@@ -111,7 +115,7 @@ nav ul li a {
border-radius
:
0.1em
;
border-radius
:
0.1em
;
padding
:
0
0.5em
;
padding
:
0
0.5em
;
height
:
100%
;
height
:
100%
;
background-color
:
#
66666688
;
background-color
:
#
55555580
;
}
}
.search-form
input
[
type
=
"search"
]
{
.search-form
input
[
type
=
"search"
]
{
...
@@ -119,6 +123,7 @@ nav ul li a {
...
@@ -119,6 +123,7 @@ nav ul li a {
outline
:
none
;
outline
:
none
;
background-color
:
transparent
;
background-color
:
transparent
;
font-size
:
1em
;
font-size
:
1em
;
size
:
10
;
}
}
.search-form
input
[
type
=
"button"
]
{
.search-form
input
[
type
=
"button"
]
{
...
@@ -130,4 +135,51 @@ nav ul li a {
...
@@ -130,4 +135,51 @@ nav ul li a {
background-size
:
contain
;
background-size
:
contain
;
border
:
none
;
border
:
none
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
\ No newline at end of file
.center-nav
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
background-color
:
blue
;
}
.center-nav
{
}
/* Extra small devices (phones, 600px and down) */
@media
only
screen
and
(
max-width
:
600px
)
{
body
{
background-color
:
blue
;
}
}
/* Small devices (portrait tablets and large phones, 600px and up) */
@media
only
screen
and
(
min-width
:
600px
)
{
body
{
background-color
:
green
;
}
}
/* Medium devices (landscape tablets, 768px and up) */
@media
only
screen
and
(
min-width
:
768px
)
{
body
{
background-color
:
yellow
;
}
}
/* Large devices (laptops/desktops, 992px and up) */
@media
only
screen
and
(
min-width
:
992px
)
{
body
{
width
:
100%
;
}
}
/* Extra large devices (large laptops and desktops, 1200px and up) */
@media
only
screen
and
(
min-width
:
1200px
)
{
body
{
width
:
1200px
;
margin
:
auto
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment