Skip to content

Commit 583de5e

Browse files
committed
CSS changed, names refactored
1 parent c3cc250 commit 583de5e

File tree

4 files changed

+50
-19
lines changed

4 files changed

+50
-19
lines changed

index2.php city.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8">
5-
<title>ThumsJS</title>
5+
<title>ThumsbJS - city</title>
66
<link rel="stylesheet" type="text/css" href="thumbs/css.css">
77
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
88
<?php session_start();
99
$_SESSION['dir']='index2';
10-
$_SESSION['width'] = 10; ?>
10+
$_SESSION['width'] = 150; ?>
1111
</head>
1212
<body>
1313
<h1>ThumbsJS</h1>

index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8">
5-
<title>ThumsJS</title>
5+
<title>ThumsbJS - nature</title>
66
<link rel="stylesheet" type="text/css" href="thumbs/css.css">
77
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
88
<?php session_start();

nav.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<ul>
2-
<li><a href="index.php">Index</a></li>
3-
<li><a href="index2.php">Index 2</a> </li>
2+
<li><a href="index.php">Nature</a></li>
3+
<li><a href="city.php">City</a> </li>
44
</ul>

thumbs/css.css

+45-14
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,67 @@
1+
body{
2+
background-color: #606060;
3+
}
4+
h1 {
5+
color: white;
6+
}
7+
18
#thumbnails {
9+
display: -webkit-flex;
10+
display: flex;
11+
-webkit-align-items: flex-start;
12+
align-items: flex-start;
13+
-webkit-justify-content: flex-start;
14+
justify-content: flex-start;
15+
-webkit-flex-flow: row wrap;
16+
flex-flow: row wrap;
17+
/* tweak the where items line up on the row */
18+
/* valid values are: flex-start, flex-end, space-between, space-around, stretch */
19+
-webkit-align-content: flex-start;
20+
align-content: flex-start;
221
border: 2px solid black;
322
box-sizing: border-box;
4-
display: flex;
5-
flex-direction: row;
6-
flex-wrap: wrap;
7-
width: 205px;
23+
flex : 1;
824
}
925

1026
.thumbnail {
1127
width: 90px;
1228
height: 90px;
1329
box-sizing: border-box;
14-
margin: 5px;
15-
border: 1px outset black;
30+
border: 1px outset darkorange;
1631
overflow: hidden;
32+
align-self: flex-start;
1733
}
1834

1935
#largeImg {
20-
border: 2px solid black;
21-
display: inline-block;
22-
height: 600px;
23-
padding: 50px;
24-
box-sizing: border-box;
25-
width: 600px;
2636
margin-left: 15px;
37+
flex: 4;
2738
}
2839
#largeImg img{
29-
height: 500px;
30-
width: 500px;
40+
border: 2px solid darkorange;
41+
height: 600px;
42+
width: 600px;
3143
margin: auto;
3244
}
3345
#container {
3446
display: flex;
3547
flex-direction: row;
48+
}
49+
nav ul {
50+
display: flex;
51+
}
52+
nav ul li {
53+
list-style: none;
54+
text-align: center;
55+
flex: 1 25%;
56+
}
57+
nav ul li a {
58+
color: darkorange;
59+
font-size: 1.5em;
60+
font-style: italic;
61+
}
62+
nav ul li a:hover {
63+
color: darkorange;
64+
font-size: 1.5em;
65+
font-style: italic;
66+
text-decoration: wavy;
3667
}

0 commit comments

Comments
 (0)