Skip to content

Commit

Permalink
Add css folder and file
Browse files Browse the repository at this point in the history
  • Loading branch information
omegahm committed Feb 11, 2015
1 parent 1c9d22b commit da409e0
Show file tree
Hide file tree
Showing 2 changed files with 156 additions and 1 deletion.
154 changes: 154 additions & 0 deletions assets/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 1,154 @@
/*********/
/* Modal */
.modal-dialog {
margin-top: 65px;
}

/*******/
/* Nav */
.navbar .col-md-10 {
padding-left: 0;
}

.navbar-brand > img {
display: inline-block;
}

.navbar-form {
padding-left: 0;
}

/**************/
/* Search bar */
#search {
width: 500px;
}

/* http://stackoverflow.com/questions/18838964/add-bootstrap-glyphicon-to-input-box */
.left-inner-addon {
position: relative;
}

.left-inner-addon input {
padding-left: 30px;
}

.left-inner-addon .glyphicon {
color: #aaa;
position: absolute;
padding: 9px 10px;
pointer-events: none;
}

/***************/
/* Sidebar nav */
.nav-stacked {
margin-top: 10px;
}

.has-event-source {
color: green;
}

.no-event-source {
color: red;
}

/*******/
/* Jim */
.jim-well {
margin-top: 20px;
}

.jim-well h3 {
margin-top: 0;
}

.jim-config {
margin-top: 3px;
padding: 5px;
font-size: 0.9em;
}

.jim-config .jim-config-item {
margin-bottom: 2px;
}

/***********/
/* Toolbar */
.toolbar {
padding: 5px;
border-bottom: 1px solid #ccc;
}

.toolbar .btn {
padding-left: 20px;
padding-right: 20px;
}

.toolbar .spacer {
display: inline-block;
width: 20px;
}

.message-count {
padding-right: 10px;
}

/***********/
/* Content */
.content {
position: fixed;
right: 0;
height: 100%;
}

.mail-content {
margin-top: 20px;
}

.msglist-message {
border-bottom: 1px solid #ccc;
padding: 5px 0;
cursor: pointer;
}

.msglist-message .subject.unread {
color: #666;
font-weight: bold;
}

/***********/
/* Preview */
#preview-plain, #preview-source {
white-space: pre;
font-family: Courier New, Courier, System, fixed-width;
padding: 10px;
}

.preview .tab-content {
overflow-y: scroll;
}

.headers {
margin-top: 10px;
}

.headers tbody td {
width: 100%;
}

.headers tbody th {
white-space: nowrap;
text-align: right;
color: #666;
font-weight: normal;
}

.haeders table td, .headers table th {
padding: 2px 10px
}

.mime-part {
padding: 10px;
}
3 changes: 2 additions & 1 deletion web/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 25,7 @@ func CreateWeb(cfg *config.Config, app *gotcha.App) *Web {
r := app.Router

r.Get("/images/(?P<file>.*)", r.Static("assets/images/{{file}}"))
r.Get("/css/(?P<file>.*)", r.Static("assets/css/{{file}}"))
r.Get("/js/(?P<file>.*)", r.Static("assets/js/{{file}}"))
r.Get("/", Index)

Expand All @@ -38,10 39,10 @@ func CreateWeb(cfg *config.Config, app *gotcha.App) *Web {
}

func Index(session *http.Session) {
session.Stash["APIHost"] = APIHost
html, _ := session.RenderTemplate("index.html")

session.Stash["Page"] = "Browse"
session.Stash["Content"] = template.HTML(html)
session.Stash["APIHost"] = APIHost
session.Render("layout.html")
}

0 comments on commit da409e0

Please sign in to comment.