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
// | |
// TUIViewController.m | |
// TestUIs | |
// | |
// Created by Murillo Nicacio de Maraes on 3/9/14. | |
// Copyright (c) 2014 m-one. All rights reserved. | |
// | |
#import "TUIViewController.h" |
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
// | |
// TUIMaskViewController.m | |
// TestUIs | |
// | |
// Created by Murillo Nicacio de Maraes on 3/13/14. | |
// Copyright (c) 2014 m-one. All rights reserved. | |
// | |
#import "TUIMaskViewController.h" |
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
// | |
// TUIIntroPageViewController.m | |
// TestUIs | |
// | |
// Created by Murillo Nicacio de Maraes on 3/13/14. | |
// Copyright (c) 2014 m-one. All rights reserved. | |
// | |
#import "TUIIntroPageViewController.h" |
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
// | |
// TUITestTableViewController.m | |
// TestUIs | |
// | |
// Created by Murillo Nicacio de Maraes on 4/29/14. | |
// Copyright (c) 2014 m-one. All rights reserved. | |
// | |
#import "TUITestTableViewController.h" |
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
/* @azlen's fantastic cosmonaut theme + some alterations for focused writing mode */ | |
@import url('https://azlen.github.io/roam-themes/cosmonaut.css'); | |
/* First I'd like my main page to be wider than my sidebar pages */ | |
:root { | |
--page-width: 1024px; | |
} | |
#roam-right-sidebar-content { | |
--page-width: 616px; |
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
const body = document.querySelector(".roam-body-main"); | |
function setCenterFocus() { | |
selectors = [".roam-article", ".roam-topbar", "#buffer"] | |
const hasSidebar = document.querySelector("#roam-right-sidebar-content") != null; | |
selectors.map(sel => document.querySelector(sel)).filter(el => el).forEach(el => { | |
console.log("Ping!"); | |
if (hasSidebar) { |