Skip to content

Instantly share code, notes, and snippets.

View robertcoopercode's full-sized avatar

Robert Cooper robertcoopercode

View GitHub Profile
@mixin border-radius($radius) {
-webkit-border-radius: $radius;
-moz-border-radius: $radius;
-ms-border-radius: $radius;
border-radius: $radius;
}
.box {
@include border-radius(10px);
}
.box {
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
-ms-border-radius: 10px;
border-radius: 10px;
}
.message {
padding: .5em;
border-radius: 3px;
}
.message-info {
@extend .message;
background-color: lightblue;
}
.message,
.message-info,
.message-error {
padding: .5em;
border-radius: 3px;
}
.message-info {
background-color: lightblue;
}
.container {
width: 100%;
}
article[role="main"] {
float: left;
width: 600px / 960px * 100%;
}
aside[role="complementary"] {
.container {
width: 100%;
}
article[role="main"] {
float: left;
width: 62.5%;
}
aside[role="complementary"] {
.button {
background-color: blue;
color: white;
}
.button:hover {
background-color: lightblue;
}
.button {
background-color: blue;
color: white;
&:hover {
background-color: lightblue;
}
}
// Require express and create an express application instance
const express = require('express');
const app = express();
// Require the express routes defined in router.js
const routes = require('./router');
// Define the hostname and port where the server can be found
const hostname = "127.0.0.1";
const port = 3000;
<html>
<head>
<link href="styles.css" rel="stylesheet" text="text/css" />
</head>
<body>
<h1 class="title">Lorem Ipsum Generator</h1>