Skip to content

Commit

Permalink
fix: 手机版padding太大
Browse files Browse the repository at this point in the history
  • Loading branch information
dyedd committed Dec 31, 2020
1 parent 4767bb2 commit 8af2d14
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 16 deletions.
2 changes: 1 addition & 1 deletion 404.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('layout/header.php'); ?>
<div class="container">
<div class="row m-1">
<div class="row">
<?php $this->need('layout/left.php'); ?>
<div class="col-xl-7 col-md-6 col-12" id="pjax-container">
<div class="error-page">
Expand Down
2 changes: 1 addition & 1 deletion archives.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
$this->need('layout/header.php');
?>
<div class="container">
<div class="row m-1">
<div class="row">
<?php $this->need('layout/left.php'); ?>
<div class="col-xl-7 col-md-6 col-12" id="pjax-container">
<section class="article-info mb-3">
Expand Down
10 changes: 0 additions & 10 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,6 @@ function themeInit($archive){
}
}



function get_user_group($name = NULL){
$db = Typecho_Db::get();
if($name === NULL)
$profile = $db->fetchRow($db->select('group', 'uid')->from('table.users')->where('uid = ?', intval(Typecho_Cookie::get('__typecho_uid'))));
else
$profile = $db->fetchRow($db->select('group', 'name', 'screenName')->from('table.users')->where('name=? OR screenName=?', $name, $name));
return $profile['group'];
}
function get_comment($coid){
$db = Typecho_Db::get();
return $db->fetchRow($db->select()
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
$this->need('layout/header.php');
?>
<div class="container">
<div class="row m-1">
<div class="row">
<?php $this->need('layout/left.php'); ?>
<div class="col-xl-7 col-md-6 col-12" id="pjax-container">
<?php if ($this->options->bannerUrl): ?>
Expand Down
2 changes: 1 addition & 1 deletion links.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
$this->need('layout/header.php');
?>
<div class="container">
<div class="row m-1">
<div class="row">
<?php $this->need('layout/left.php'); ?>
<div class="col-xl-7 col-md-6 col-12" id="pjax-container">
<section class="article-info mb-3">
Expand Down
2 changes: 1 addition & 1 deletion page.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('layout/header.php'); ?>
<div class="container">
<div class="row m-1">
<div class="row">
<?php $this->need('layout/left.php'); ?>
<div class="col-xl-7 col-md-6 col-12" id="pjax-container">
<?php $this->need('component/page.content.php'); ?>
Expand Down
2 changes: 1 addition & 1 deletion post.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('layout/header.php'); ?>
<div class="container">
<div class="row m-1">
<div class="row">
<?php $this->need('layout/left.php'); ?>
<div class="col-xl-7 col-md-6 col-12" id="pjax-container">
<?php $this->need('component/post.content.php'); ?>
Expand Down

0 comments on commit 8af2d14

Please sign in to comment.