Personalizando a Aparência do Blog com o Tema SimpleMemory

Este guia descreve o processo de instalação e configuração do tema SimpleMemory para personalizar a aparência do seu blog.

Instalação

  1. Acese as configurações do seu blog e solicite a permissão para usar JavaScript personalizado. A aprovação geralmente leva algumas horas.

  2. No painel de administração do blog, navegue até a seção de temas e selecione "SimpleMemory".

  3. Recupere o código CSS do repositório GitHub do tema.

    Copie o conteúdo de src/style/base.min.css e cole-o na área "Personalizar Código CSS da Página". Certifique-se de marcar a opção "Desabilitar CSS padrão do modelo".

Código CSS


/* Estilos gerais e de navegação */
#EntryTag, #blogTitle h1 {
   margin-top: 20px;
}

#EntryTag a, .postSticky {
   background-color: #6fa3ef;
}

#blogTitle h1 a, .dayTitle a, a, a:active, a:link, a:visited {
   color: #5c8ec6;
}

#calendar table a:hover, #navList a:hover, .postDesc a:hover, a:active, a:hover, a:link, a:visited, button {
   text-decoration: none;
}

*, .Cal {
   padding: 0;
   margin: 0;
}

::selection {
   background: #807dd4;
   color: #FFF;
}

/* Barras de rolagem */
::-webkit-scrollbar {
   width: 3px;
   height: 3px;
}

::-webkit-scrollbar-track {
   background-color: #f9f9f9;
}

::-webkit-scrollbar-thumb {
   background-color: #999;
   background-clip: padding-box;
   min-height: 100px;
}

::-webkit-scrollbar-thumb:hover {
   background-color: #555;
}

/* Layout e Tipografia */
body {
   background-color: #fff;
   font-size: 12px;
   font-family: Merriweather, "Open Sans", "Microsoft Jhenghei", "Microsoft Yahei", sans-serif;
   color: #3A4145;
   overflow-x: hidden; /* Evita overflow horizontal */
}

html {
   height: 100%;
   font-size: 62.5%;
   -webkit-tap-highlight-color: transparent; /* Remove destaque em toques em dispositivos móveis */
}

button {
   display: inline-block;
   padding: .1rem 1.5rem;
   cursor: pointer;
   outline: 0;
   color: #fff;
   font-family: 'Open Sans', sans-serif;
   font-size: 11px;
   line-height: 13px;
   font-weight: 300;
   letter-spacing: 1px;
   text-transform: uppercase;
   text-shadow: none;
   border-radius: .3rem;
   border: .1em solid rgba(0, 0, 0, .05);
   background: #5ba4e5;
}

/* Cabeçalho */
#home {
   width: 70%;
   max-width: 900px;
   background-color: rgba(255, 255, 255, .9);
   padding: 0 20px 30px;
   box-shadow: 0 0 20px 10px rgba(220, 220, 220, .3);
   margin: 0 auto; /* Centraliza o container principal */
}

#blogTitle h1 {
   font-size: 26px;
   font-weight: 700;
   line-height: 1.5em;
}

#blogTitle h1 a {
   color: #515151;
}

#blogTitle h2 {
   font-weight: 400;
   font-size: 13px;
   line-height: 1.846153846;
   color: #757575;
   float: left;
}

#navigator {
   font-size: 13px;
   border-bottom: 1px solid #ededed;
   border-top: 1px solid #ededed;
   height: 50px;
   clear: both;
   margin-top: 25px;
}

#navList li {
   float: left;
   margin: 0 40px 0 0;
}

#navList a {
   display: block;
   width: 5em;
   height: 22px;
   float: left;
   padding-top: 19px;
}

#navList a:active, #navList a:link, #navList a:visited {
   color: #6a6a6a;
   font-weight: 700;
}

#navList a:hover {
   color: #000;
}

.blogStats {
   float: right;
   color: #757575;
   margin-top: 19px;
   margin-right: 2px;
   text-align: right;
}

/* Conteúdo principal */
#mainContent {
   min-height: 200px;
   padding: 0 0 10px;
   float: none; /* Remove float para centralizar em layouts responsivos */
   margin: auto; /* Centraliza */
   width: 100%;
}

.entrylistItem:not(:last-of-type) {
   border-bottom: #e9e9e9 1px solid;
}

.dayTitle {
   display: none; /* Oculto por padrão, pode ser ativado com JS */
}

.postTitle a {
   font-size: 3.1rem;
   font-weight: 700;
   letter-spacing: -1px;
   transition: color .3s ease;
   word-wrap: break-word;
   color: #4a4a4a;
   font-family: "Open Sans", "Microsoft Jhenghei", "Microsoft Yahei", sans-serif;
}

.postTitle a:hover {
   color: #000;
}

.postMeta {
   font-size: 14px;
   color: #888;
   position: relative;
   top: 10px;
   display: inline-block;
}

.postMeta > i:not(:first-child) {
   margin-left: 10px;
}

.postDesc {
   color: #9EABB3;
   font-size: 1.4rem;
   line-height: 2.2rem;
}

.postDesc a:hover {
   color: #5c8ec6;
}

.postSticky {
   display: inline-block;
   font-size: 14px;
   color: #fff;
   padding: 1px 3px;
   border-radius: 3px;
   position: relative;
   top: -6px;
}

/* Barra lateral */
#sideBar {
   margin-top: -15px;
   width: 230px;
   padding: 0 0 0 5px;
   float: right;
}

#sideBar a {
   color: #757575;
}

#sideBar a:hover {
   color: #5c8ec6;
   text-decoration: underline;
}

#calendar {
   width: 228px;
   padding-bottom: 5px;
   margin-bottom: 35px;
   border: 1px solid #EDEDED;
   box-shadow: 0 1px 3px #ccc;
}

.CalTitle {
   background: #6293bb;
   width: 100%;
   height: 30px;
   text-align: center;
   font-size: 14px;
   font-weight: 700;
   padding: 5px 0;
}

.CalTitle td {
   background: #000;
   font-family: verdana;
   font-size: 12px;
   font-weight: 700;
}

.catListTitle {
   font-weight: 700;
   line-height: 1.2;
   font-size: 110%;
   margin-top: 15px;
   margin-bottom: 10px;
   text-align: left;
}

/* Comentários e Rodapé */
.feedbackListSubtitle {
   color: #586069;
   background-color: #f6f8fa;
   border: 1px solid #e9e9e9;
   border-bottom-left-radius: 5px;
   border-bottom-right-radius: 5px;
   padding: 10px 20px;
   position: relative;
   white-space: nowrap;
   text-overflow: ellipsis;
}

.feedbackItem {
   position: relative;
   padding: 15px 0 15px 60px;
   margin: 0;
   font-size: 13px;
}

.feedbackAvatar img {
   width: 40px;
   height: 40px;
   border: 1px solid #d1d5da;
   padding: 2px;
   border-radius: 3px;
}

.commenttb {
   width: 320px;
}

.commentTextBox {
   width: 410px !important;
}

#AjaxHolder_PostComment_btnSubmit {
   padding: 8px 20px;
   color: #fff;
   border: none;
   background: #5c8ec6;
   border-radius: 3px;
   transition: all .4s ease;
   cursor: pointer;
   display: inline-block;
   vertical-align: middle;
   outline: 0;
   text-decoration: none;
}

#AjaxHolder_PostComment_btnSubmit:hover {
   background: #333;
}

#footer {
   min-height: 100px;
   margin: 20vh 0 0;
   left: 0;
   right: 0;
   padding: 15px 0;
   color: #888;
   line-height: 1.5;
}

/* Animações */
@-webkit-keyframes my-face { /* Animação de rosto */ ... }
@keyframes my-face { ... }

@-webkit-keyframes bounce { /* Animação de bounce */ ... }
@keyframes bounce { ... }

@-webkit-keyframes fade-in-down { /* Animação fade-in-down */ ... }
@keyframes fade-in-down { ... }

/* Layout responsivo */
@media only screen and (max-width: 1200px) {
   /* Ajustes para telas menores */
   .main-header {
       height: 60vh;
   }
   .entrylistPosttitle a:link, .postTitle a:link {
       font-size: 2.8rem;
   }
}

@media only screen and (max-width: 960px) {
   /* Ajustes para telas médias */
   .main-header {
       height: 50vh;
   }
   #home {
       width: auto;
   }
   .c_b_p_desc_img {
       display: none !important;
   }
}

@media only screen and (max-width: 720px) {
   /* Ajustes para telas pequenas */
   .main-header {
       height: 40vh;
   }
   .entrylistPosttitle a:link, .postTitle a:link {
       font-size: 2.3rem;
   }
   .inner {
       width: auto;
       margin: 2rem auto;
   }
}
   

Configuração Adicional

  1. Cole o seguinte script na seção "Anúncios da Barra Lateral" (ou similar, dependendo da plataforma do seu blog). Certifique-se de ajustar os valores de GhVersions, blogUser, blogAvatar e blogStartDate conforme necessário.

    
    <script type="text/javascript">
       window.cnblogsConfig = {
           GhVersions    : "v1.3.3", // Versão do tema
           blogUser      : "seu_nome_de_usuario", // Seu nome de usuário
           blogAvatar    : "URL_para_seu_avatar", // URL do seu avatar
           blogStartDate : "AAAA-MM-DD", // Data de início do blog (formato AAAA-MM-DD)
       }
    </script>
    <script src="https://cdn.jsdelivr.net/gh/BNDong/Cnblogs-Theme-SimpleMemory@v1.3.3/src/script/simpleMemory.min.js" defer></script>
    
    
  2. Adicione o seguinte código à seção "Código HTML do Rodapé" do seu blog:

    
    <!-- Scripts para funcionalidade adicional -->
    <script src="https://cdn.bootcss.com/clipboard.js/2.0.4/clipboard.min.js"></script>
    <script src="https://blog-static.cnblogs.com/files/gshang/gshang.bilibili.big.2020.02.27.4.js"></script>
    <script src="https://cdn.bootcss.com/jquery-scrollTo/2.1.2/jquery.scrollTo.js"></script>
    <script src="https://blog-static.cnblogs.com/files/gshang/gshang.owo.2020.01.05.1.js"></script>
    <link rel="stylesheet" href="https://blog-static.cnblogs.com/files/gshang/gshang.OwO.3.css" />
    <script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
    <link rel="stylesheet" href="https://blog-static.cnblogs.com/files/gshang/notiflix-2.0.0.min.css">
    <script src="https://blog-static.cnblogs.com/files/gshang/notiflix-2.0.0.min.js"></script>
    
    

Tags: CSS HTML javascript blog tema

Publicado em 7-21 22:00