-
-
Save anonymous/8a9f44a2218f1e40ec2d760d15b608f0 to your computer and use it in GitHub Desktop.
eget_tema
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Globals | |
*/ | |
body { | |
font-family: Georgia, "Times New Roman", Times, serif; | |
color: #555; | |
} | |
h1, .h1, | |
h2, .h2, | |
h3, .h3, | |
h4, .h4, | |
h5, .h5, | |
h6, .h6 { | |
margin-top: 0; | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
font-weight: normal; | |
color: #333; | |
} | |
/* | |
* Override Bootstrap's default container. | |
*/ | |
@media (min-width: 1200px) { | |
.container { | |
width: 970px; | |
} | |
} | |
/* Add a black background color to the top navigation */ | |
.topnav { | |
background-color: #333; | |
overflow: hidden; | |
} | |
/* Style the links inside the navigation bar */ | |
.topnav a { | |
float: left; | |
display: block; | |
color: #f2f2f2; | |
text-align: center; | |
padding: 14px 16px; | |
text-decoration: none; | |
font-size: 17px; | |
} | |
/* Change the color of links on hover */ | |
.topnav a:hover { | |
background-color: #ddd; | |
color: black; | |
} | |
/* Add a color to the active/current link */ | |
.topnav a.active { | |
background-color: #4CAF50; | |
color: white; | |
} | |
/* Nav links */ | |
.blog-nav-item { | |
position: relative; | |
display: inline-block; | |
padding: 10px; | |
font-weight: 500; | |
color: #cdddeb; | |
} | |
.blog-nav-item:hover, | |
.blog-nav-item:focus { | |
color: #fff; | |
text-decoration: none; | |
} | |
/* Active state gets a caret at the bottom */ | |
.blog-nav .active { | |
color: #fff; | |
} | |
.blog-nav .active:after { | |
position: absolute; | |
bottom: 0; | |
left: 50%; | |
width: 0; | |
height: 0; | |
margin-left: -5px; | |
vertical-align: middle; | |
content: " "; | |
border-right: 5px solid transparent; | |
border-bottom: 5px solid; | |
border-left: 5px solid transparent; | |
} | |
.blog-nav li { | |
position: relative; | |
display: inline-block; | |
padding: 10px; | |
font-weight: 500; | |
} | |
.blog-nav li a { | |
color: #fff; | |
} | |
/* | |
* Blog name and description | |
*/ | |
.blog-header { | |
padding-top: 20px; | |
padding-bottom: 20px; | |
} | |
.blog-title { | |
margin-top: 30px; | |
margin-bottom: 0; | |
font-size: 60px; | |
font-weight: normal; | |
} | |
.blog-description { | |
font-size: 20px; | |
color: #999; | |
} | |
/* | |
* Main column and sidebar layout | |
*/ | |
.blog-main { | |
font-size: 18px; | |
line-height: 1.5; | |
} | |
/* Sidebar modules for boxing content */ | |
.sidebar-module { | |
padding: 15px; | |
margin: 0 -15px 15px; | |
} | |
.sidebar-module-inset { | |
padding: 15px; | |
background-color: #f5f5f5; | |
border-radius: 4px; | |
} | |
.sidebar-module-inset p:last-child, | |
.sidebar-module-inset ul:last-child, | |
.sidebar-module-inset ol:last-child { | |
margin-bottom: 0; | |
} | |
/* Pagination */ | |
.pager { | |
margin-bottom: 60px; | |
text-align: left; | |
} | |
.pager > li > a { | |
width: 140px; | |
padding: 10px 20px; | |
text-align: center; | |
border-radius: 30px; | |
} | |
/* | |
* Blog posts | |
*/ | |
.blog-post { | |
margin-bottom: 60px; | |
} | |
.blog-post-title { | |
margin-bottom: 5px; | |
font-size: 40px; | |
} | |
.blog-post-meta { | |
margin-bottom: 20px; | |
color: #999; | |
} | |
/* | |
* Footer | |
*/ | |
.blog-footer { | |
padding: 40px 0; | |
color: #999; | |
text-align: center; | |
background-color: #f9f9f9; | |
border-top: 1px solid #e5e5e5; | |
} | |
.blog-footer p:last-child { | |
margin-bottom: 0; | |
} | |
ul { | |
list-style-type: none; | |
margin: 0; | |
padding: 0; | |
overflow: hidden; | |
background-color: #333; | |
} | |
li { | |
float: left; | |
} | |
li a { | |
display: block; | |
color: white; | |
text-align: center; | |
padding: 14px 16px; | |
text-decoration: none; | |
} | |
li a:hover:not(.active) { | |
background-color: #111; | |
} | |
.active { | |
background-color: #4CAF50; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="blog-post"> | |
<h2 class="blog-post-title"><?php the_title(); ?></h2> | |
<p class="blog-post-meta"><?php the_date(); ?> by <a href="#"><?php the_author(); ?></a></p> | |
<?php the_content(); ?> | |
</div><!-- /.blog-post --> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<title>Sik Review</title> | |
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet"> | |
<link href="<?php echo esc_url( get_template_directory_uri() );?>/blog.css" rel="stylesheet"> | |
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> | |
<!--[if lt IE 9]> | |
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> | |
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> | |
<![endif]--> | |
<?php wp_head();?> | |
</head> | |
<body> | |
<ul> | |
<li><a href="/wordpress/">Home</a></li> | |
<li><a href="/wordpress/index.php/pc">PC</a></li> | |
<li><a href="/wordpress/index.php/playstation-4">Playstation 4</a></li> | |
<li><a href="/wordpress/index.php/xbox-one">Xbox One</a></li> | |
<li><a href="/wordpress/index.php/developer-blog">Developer Blog</a></li> | |
<li><a href="/wordpress/index.php/contact-us">Contact Us</a></li> | |
</ul> | |
<div class="container"> | |
<div class="blog-header"> | |
<h1 class="blog-title"><a href="<?php echo esc_url( site_url() );?>"><?php echo get_bloginfo( 'name' ); ?></$ | |
<p class="lead blog-description"><?php echo get_bloginfo( 'description' ); ?></p> | |
</div> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header(); ?> | |
<div class="row"> | |
<div class="col-sm-8 blog-main"> | |
<?php | |
if ( have_posts() ) : while ( have_posts() ) : the_post(); | |
get_template_part( 'content', get_post_format() ); | |
endwhile; endif; | |
?> | |
</div> <!-- /.blog-main --> | |
<?php get_sidebar(); ?> | |
</div> <!-- /.row --> | |
<?php get_footer(); ?> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header(); ?> | |
<div class="row"> | |
<div class="col-sm-12"> | |
<?php | |
if ( have_posts() ) : while ( have_posts() ) : the_post(); | |
get_template_part( 'content', get_post_format() ); | |
endwhile; endif; | |
?> | |
</div> <!-- /.col --> | |
</div> <!-- /.row --> | |
<?php get_footer(); ?> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Theme Name: Eget_tema | |
Author: Mathias Hansen | |
Description: Tema til stort prosjekt, gruppe ez 6er | |
Version: 0.0.1 | |
Text domain: egettema | |
License: GNU General Public License v2 or later | |
License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
*/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment