Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

Commit

Permalink
Drop application header
Browse files Browse the repository at this point in the history
  • Loading branch information
k0kubun committed Mar 20, 2016
1 parent 42079f3 commit 4902a59
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 148 deletions.
3 changes: 0 additions & 3 deletions src/components/app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { PropTypes } from 'react';
import AccountContainer from '../containers/account-container';
import EditorContainer from '../containers/editor-container';
import HeaderContainer from '../containers/header-container';
import TimelineContainer from '../containers/timeline-container';

export default class App extends React.Component {
Expand All @@ -17,8 +16,6 @@ export default class App extends React.Component {
render() {
return(
<div className={`timeline_container ${process.platform}`}>
<HeaderContainer />

<AccountContainer />
<EditorContainer />

Expand Down
30 changes: 0 additions & 30 deletions src/components/header.js

This file was deleted.

66 changes: 0 additions & 66 deletions src/containers/header-container.js

This file was deleted.

58 changes: 9 additions & 49 deletions src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
@import "bootstrap";
@import "font-awesome";

$header_height: 46px;
$editor_height: 47px;
$tabs_height: 28px;
$timeline_height: 640px;
Expand Down Expand Up @@ -32,54 +31,15 @@ body {
user-select: none;
-webkit-user-select: none;

.header {
position: fixed;
top: 0;
left: 0;
background: linear-gradient(#e0e0e0, #cccbcc);
width: 100%;
height: $header_height;
z-index: 400;
overflow: hidden;
border-bottom: 1px solid #b4b4b4;
box-shadow: 0 1px 2px 1px rgba(0,0,0,0.14);
box-sizing: border-box;
padding: 5px 0 0 8px;

.button_wrapper {
float: left;
font-size: 11px;
text-align: center;
margin: 0 12px 0 4px;
color: #403638;
}

.button {
background: #fbfafb;
color: #606060;
font-size: 14px;
width: 38px;
margin: auto;
height: 24px;
padding-top: 4px;
border-radius: 3px;
border-bottom: 1px solid #b5b2b5;
}

.button:active {
background: #ccc;
}
}

#account_selector {
position: absolute;
top: 60px;
top: 14px;
left: 16px;
}

.editor {
position: fixed;
top: $header_height;
top: 0;
left: 0;
background: $white;
width: 100%;
Expand Down Expand Up @@ -136,7 +96,7 @@ body {

.tabs {
position: fixed;
top: $header_height + $editor_height;
top: $editor_height;
left: 0;
background: #bbb;
width: 100%;
Expand Down Expand Up @@ -190,19 +150,19 @@ body {

.tweets {
position: fixed;
top: $header_height + $editor_height + $tabs_height;
top: $editor_height + $tabs_height;
left: 0;
background: $white;
width: 100%;
height: calc(100% - #{$header_height + $editor_height + $tabs_height});
height: calc(100% - #{$editor_height + $tabs_height});
overflow: scroll;
overflow-x: hidden;
padding: 0;
display: none;

&.with_header {
height: calc(100% - #{$header_height + $editor_height + $tabs_height + $tweets_header_height});
top: $header_height + $editor_height + $tabs_height + $tweets_header_height;
height: calc(100% - #{$editor_height + $tabs_height + $tweets_header_height});
top: $editor_height + $tabs_height + $tweets_header_height;
}

&.active {
Expand Down Expand Up @@ -362,7 +322,7 @@ body {

.tweets_header {
position: absolute;
top: $header_height + $editor_height + $tabs_height;
top: $editor_height + $tabs_height;
width: 100%;
height: $tweets_header_height;
background: linear-gradient(#efefef, #cccbcc);
Expand Down Expand Up @@ -402,7 +362,7 @@ body {

.timeline_container.darwin {
$title_bar_offset: 20px;
$header_height: $header_height + $title_bar_offset;
$header_height: $title_bar_offset;

.header {
height: $header_height;
Expand Down

0 comments on commit 4902a59

Please sign in to comment.